Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Java 2 installation issue maybe?

Status
Not open for further replies.

gerald

Programmer
Apr 10, 2000
152
US
Hi there... :)

I just installed Java 2 SDK on a Redhat 7.0 system, and most things seem to work OK. I can compile and execute applications on the server and they run fine.
Then I created a simple JApplet and compiled it. It compiled fine with no errors or warnings, but when I try to execute it from a web page, it tells me... 'class test not found' or something to that effect.
Now if I go to my Apache error log, I see that there is an error being generated when I do that, which says No such file or directory: '/
/ is the folder where I have my test.class file located and the html page that calls it.

Any ideas on what Im doing wrong would be greatly appreciated.

Thanks,
Gerald
 
Gerald,

Do you have the Sun Java 2 plug in installed for the browser you are using? If not, none of the swing stuff is going to work.

If you are not familiar with this go to and read up on using Swing in browsers using the Java2 plug-in.

Good luck
-pete
 
HI Pete,

Thanks for the input.
I am using the latest version of Internet Explorer so I assumed it was swing capable. However, I went ahead and installed the plugin anyways but the problem remains the same.

It looks like somehow Java is not finding the swing classes on the server. I tried playing around a little bit, and unjared the source code and compiled the JApplet.class file and put it under / and tried again. It gave me the same error in my browser, but the error in my apache log changed to a different class file that it couldnt find. So I continued to compile class files for like 10 files until it said it couldnt find / that I had no source code for. At this point when I tried to pull the page in my browser, it no longer said it couldnt find the test class, but it said that it couldnt instantiate the applet.

I can compile and run regular AWT applets fine.

I think I remember reading somewhere that the Swing classes were implemented with CORBA or one of the common object interfaces. Maybe something is not quite jiveing there. I havent gotten around to learning how all of that works yet so I am kinda outta my league here.

Under normal circumstances I could probably figure this out on my own, but I am currently working 30 hour days and need as much help as I can get. I need to learn J2EE and begin cutover by like... 3 weeks ago... lol.
I figured that getting Tomcat to play nice was going to be my major headache, but I got it up and running in a couple of hours.

Oh well...

Thanks,
Gerald
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top