troubleshooting Question

1.1.8 error Strange error

Avatar of pouli
pouli asked on
Java
3 Comments1 Solution199 ViewsLast Modified:
Hello,

The default java version at my system is 1.4.0_01 but I have 1.1.8 version as well.

I am developing a project that needs 1.1.8 compiler.
When I compiling and running the project with the 1.4 everything are fine,

but when I am trying to compile them with 1.1.8 I take for all the classes the same error message:

Public class x.x.x.ClassName must be defined in a file called "ClassName.java"

Well, of course I have them in the right file name itherwise it wouldn't comile with the 1.4 compiler.


I am thinking that probably I have somthing wrong with the enviromental variables.

I reset the classpath and put the path equals to the jdk1.1.8\bin

Any ideas ?

ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 3 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros