Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / November 2006

Tip: Looking for answers? Try searching our database.

Please help with java app error "main class not found"

Thread view: 
steve - 17 Nov 2006 23:19 GMT
I have a java application that works perfect on a fresh installation
(xp). However I'm trying to run on a computer thats had load of rubbish
installed before.

When trying to run my app I get the error message  "main class not
found" therefore it must be a linker, jvm or similar problem. I can't
wipe the hard drive and start a fresh install because its a customers
demo computer. How can I remove all traces of previuos java
installations? I think there may be conflicts. Any help or pointers
would be apreciated.

Thanks in advance
Knute Johnson - 17 Nov 2006 23:43 GMT
> I have a java application that works perfect on a fresh installation
> (xp). However I'm trying to run on a computer thats had load of rubbish
[quoted text clipped - 8 lines]
>
> Thanks in advance

Just go to Add/Remove Programs and remove all of the old JREs.  Then
install a new one and it should run just fine.  You might also check the
environment variables to make sure that there is no CLASSPATH set.

Signature

Knute Johnson
email s/nospam/knute/

steve - 17 Nov 2006 23:50 GMT
> > I have a java application that works perfect on a fresh installation
> > (xp). However I'm trying to run on a computer thats had load of rubbish
[quoted text clipped - 17 lines]
> Knute Johnson
> email s/nospam/knute/

Hi Knute
I've removed all previous jre's and cleared the classpath with no
success, possibly there is some other app thats installed something
thats causing conflicts?

Steve
Knute Johnson - 18 Nov 2006 00:14 GMT
>>> I have a java application that works perfect on a fresh installation
>>> (xp). However I'm trying to run on a computer thats had load of rubbish
[quoted text clipped - 24 lines]
>
> Steve

Steve:

Please post your command line and the actual error message.

Also just type java<ENTER> at the command line and post the results.

Signature

Knute Johnson
email s/nospam/knute/



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.