• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Windows 2000 compiling problems - anyone else seeing this?

 
Ranch Hand
Posts: 287
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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).]
 
Wanderer
Posts: 18671
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
DC Dalton
Ranch Hand
Posts: 287
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 287
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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......
 
Ranch Hand
Posts: 583
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
gautham kasinath
Ranch Hand
Posts: 583
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 18671
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
 
reply
    Bookmark Topic Watch Topic
  • New Topic