aspose file tools*
The moose likes Java in General and the fly likes Windows 2000 compiling problems - anyone else seeing this? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Windows 2000 compiling problems - anyone else seeing this?" Watch "Windows 2000 compiling problems - anyone else seeing this?" New topic
Author

Windows 2000 compiling problems - anyone else seeing this?

DC Dalton
Ranch Hand

Joined: May 28, 2001
Posts: 287
Ive been running the jdk1.3 on my win98 machines for many many moons now & have set up quite a few other machines to run java & servelts with different operating system but now Ive got a problem with my laptop & a new load of Windows 2000. The compiler isnt finding class files, even when they are in the same folder as the file Im compiling. Ive tryed importing them (even though you shouldnt have to) & that doesnt work either! Ive set up the path & classpath just like I have on a million other machines & it just wont find them.........is this a bug or does someone out there know something about Win2000 (Besides the fact that its another crap Microsoft product) that I dont know.......any help would be much appreciated as i need to get work done while traveling & my laptop is the only way!
[This message has been edited by DC Dalton (edited August 23, 2001).]
Jim Yingst
Wanderer
Sheriff

Joined: Jan 30, 2000
Posts: 18671
Does the classpath include the current directory? And as for these files which are in the same directory you're compiling from - are they declared to be part of packages? If so, you probably need to set directories for each package.
Try the simplest possible test case- a file in the current directory, Test.java:
----
<pre>
public class Test {}
</pre>
----
Compile this with
<pre>javac -classpath . Test.java</pre>
and see what happens. If it works, then make more complex examples which are closer to the files you are trying to compile. Compare your system classpath with the one being directly set by the -classpath option ("." in the above example), and modify as necessary. If you can't get the above example to compile, then there is something more fundamentally wrong, I imagine.

"I'm not back." - Bill Harding, Twister
DC Dalton
Ranch Hand

Joined: May 28, 2001
Posts: 287
Im compiling servlets right now. Ive set the classpath like this (which is the way I do it for every machine):
D:\jdk1.3\lib\tools.jar;D:\jdbc;D:\JavaMail\mail.jar;D:\JavaMail\activation.jar;D:\tomcat\lib\servelt.jar
And I have the path set as such:
%PATH%;.;D:jdk1.3\jre\bin\hotspot;D:\jdk1.3\bin;
I have never needed to include the classes folder from tomcat in my classpath before. In answer to your second question there are no packages except javaexchanges connectionBroker (which it also cant find) but my main concern is the class files in the local folder....Ive never seen anything like this!
I will try your suggestion but the problem seems to ly in imported & external class when instantiating
[This message has been edited by DC Dalton (edited August 23, 2001).]
DC Dalton
Ranch Hand

Joined: May 28, 2001
Posts: 287
OK NOW Im really confused here....I just put the path to the classes folder in tomcat (D:\tomcat\webappsROOT\web-inf\classes) into the classpath & now everything compiles.......what in god's name has Microsoft done to this operating system that doesnt play nice with Java? I was going to upgrade my main machine to Win2000 but now Im not too sure......
gautham kasinath
Ranch Hand

Joined: Dec 01, 2000
Posts: 583
Hi!
Well there aint that MS has done to his new horse @ the stables..
Like youd said, for many moons that ud been running the classes on different ranchs.. there seems to be a praw the way you set the classpath on the 2000... Because I cudnt simulate the praw on my 2000 server.. some how I installed JDK and set the nessasary classpath.. and lo behold de horses knew where they were going..
so pardner.. no use blaming MS.. I aint a MS fan.. but I know my way round the stables of MS..
Regds
Gautham Kasinath
P.S. please re check the classpath.. if possible.. take out all the classpaths and set ONLY the nessasary classpath and ompile n run the code.. it will work.


"In the country of the blind, the one eyed man is the King"
Gautham Kasinath CV at : http://www.geocities.com/gkasinath
gautham kasinath
Ranch Hand

Joined: Dec 01, 2000
Posts: 583
I sure did have a funny round like the one posted..
I ve an applet that is served from a HTML container served from a JSP page.. through Weblogic.
now the applet makes a Socket connection to a server running on a dedicated port.. say xxxx.
Behind a firewall.. like all applets the connection mustnt happen.
but weird as it is.. thru a Winnt behind a proxy/firewall.. there is a host unreachable exception thrown..
but with a win 98 with the same network configurations it works just fine. no exception none whatsoever..
Does anyone here @ the vast ranch know why this horse behaves this way..
I would accpet and enlightenment.. coz I cudnt resolve or explain the same to my boss...
Regds
Gautham kasinath
Jim Yingst
Wanderer
Sheriff

Joined: Jan 30, 2000
Posts: 18671
I dunno - to me the mystery is how you were managing to compile in the past without listing the class file folder in the classpath. Perhaps you were always compiling classes that didn't depend on each other?
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Windows 2000 compiling problems - anyone else seeing this?