The Artima Developer Community
Sponsored Link

Java Answers Forum
My program will not compile on a different pc

6 replies on 1 page. Most recent reply: Sep 10, 2003 10:19 PM by mausam

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 6 replies on 1 page
Clay Dagler

Posts: 21
Nickname: cdagler
Registered: Jul, 2003

My program will not compile on a different pc Posted: Sep 8, 2003 6:21 PM
Reply to this message Reply
Advertisement
I installed J2SE 1.4.2 SDK on a pc at work and this is what happens when I try to compile it:

C:\Exp001>compile

C:\Exp001>javac TeName\*.java
Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/tools/javac/M
ain

C:\Exp001>jar cfm teachername.jar teachername.mf TeName\*.class
TeName\*.class : no such file or directory

C:\Exp001>


This program works fine at home why does it not work at work.

Thanks


Isa

Posts: 6
Nickname: isa
Registered: Sep, 2003

Re: My program will not compile on a different pc Posted: Sep 8, 2003 9:27 PM
Reply to this message Reply
When you save your program did u save it in your compiler bin. Thats why you probably can't find the class when you compile it.....

David

Posts: 150
Nickname: archangel
Registered: Jul, 2003

Re: My program will not compile on a different pc Posted: Sep 9, 2003 1:58 AM
Reply to this message Reply
What happens when you type:

java -version

and

java -help

mausam

Posts: 243
Nickname: mausam
Registered: Sep, 2003

Re: My program will not compile on a different pc Posted: Sep 9, 2003 3:58 AM
Reply to this message Reply
Make sure your JAVA_HOME points to your j2sdk1.4 folder!!!

Senthoorkumaran Punniamoorthy

Posts: 335
Nickname: senthoor
Registered: Mar, 2002

Re: My program will not compile on a different pc Posted: Sep 10, 2003 8:39 PM
Reply to this message Reply
I know Tomcat and some other servers reffers to JAVA_HOME, however from when a java and javac reffered to JAVA_HOME??? In the JDK installation there is no mention about having a JAVA_HOME enviornment varibale right???

Clay Dagler

Posts: 21
Nickname: cdagler
Registered: Jul, 2003

Re: My program will not compile on a different pc Posted: Sep 10, 2003 10:14 PM
Reply to this message Reply
Once again - thanks everone you helped me get this working.

mausam

Posts: 243
Nickname: mausam
Registered: Sep, 2003

Re: My program will not compile on a different pc Posted: Sep 10, 2003 10:19 PM
Reply to this message Reply
What was the solution buddy??

Flat View: This topic has 6 replies on 1 page
Topic: Reading Integers Previous Topic   Next Topic Topic: MouseDrag event

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use