• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to compile Java Program

 
Babu Daan
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Friends,
What did change in Java version 1.3 that I need to compile it differently. I had some programs written for Jdk1.2.2. I donno why I am not able to compile and run them in Jdk1.3. What are the changes. I am able to compile them using oldjavac and run them using oldjava.
Any help is appreciated.
thanks!
 
Marilyn de Queiroz
Sheriff
Posts: 9063
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I switched from 1.2 to 1.3 with no problems. What kind of errors are you getting?
 
Babu Daan
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is giving me the exception saying
Exception in thread "main" java.lang.NoClassDefFoundError: hereClassName
It is not able to find the class. Why!!
 
Marilyn de Queiroz
Sheriff
Posts: 9063
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is the class in your classpath?
 
Ronald Schindler
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Question: did you ever get this figured out? I'm having a similar problem. I'm getting this error:
Exception in thread "main" java.lang.NoClassDefFoundError: testClass
It works fine on my one harddrive but not on the other. I looked at the Path and Classpath for both and they contain the same information. My immediate workaround is to use my old disk but its not how I'd like to continue.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic