New Posts  All Forums:Forum Nav:

Java problem

post #1 of 19
Thread Starter 
Ever since I reformatted awhile ago, I can't open any appelets that use JAVA in IE. I downloaded the latest one and reinstalled. I checked the option to use java 2.0 in the internet options then rebooted and unchecked then rebooted and checked then rebooted. I even deleted and reinstalled IE. I tried Netscape and opera, and they don't let me use java either.

Any suggestions?
post #2 of 19
Spiike.. what OS are you using? im assuming XP pro.. if so are you using the service pack with the MSVM removed.. you may need to reinstall the virtual machine separate from IE.
post #3 of 19
Don't use MSJVM...instead download the latest J2RE if you haven't already: https://jsecom15k.sun.com/ECom/EComA...8718768397c374
Use this offline installation so you could specify where to install the RE.
Next go to Control Panel and open the Java Plug-in control. In the Advanced Tab make sure the latest JRE is used (not the Default). If it's not listed enter the location of it yourself. Then in the Browser tab make sure IE is checked...
post #4 of 19
Thread Starter 
I tried an offline download and reinstalled. Then set it as the one i want in teh advanced tab, and java still doesn't work. IE is checked. This is the error I get in the java console

HTML Code:
java.lang.VerifyError: class org.omg.PortableServer.AdapterActivatorPOA overrides final method .

at java.lang.ClassLoader.defineClass0(Native Method)

at java.lang.ClassLoader.defineClass(Unknown Source)

at java.security.SecureClassLoader.defineClass(Unknown Source)

at java.net.URLClassLoader.defineClass(Unknown Source)

at java.net.URLClassLoader.access$100(Unknown Source)

at java.net.URLClassLoader$1.run(Unknown Source)

at java.security.AccessController.doPrivileged(Native Method)

at java.net.URLClassLoader.findClass(Unknown Source)

at sun.applet.AppletClassLoader.findClass(Unknown Source)

at java.lang.ClassLoader.loadClass(Unknown Source)

at sun.applet.AppletClassLoader.loadClass(Unknown Source)

at java.lang.ClassLoader.loadClass(Unknown Source)

at java.lang.ClassLoader.loadClassInternal(Unknown Source)

at java.lang.ClassLoader.defineClass0(Native Method)

at java.lang.ClassLoader.defineClass(Unknown Source)

at java.security.SecureClassLoader.defineClass(Unknown Source)

at java.net.URLClassLoader.defineClass(Unknown Source)

at java.net.URLClassLoader.access$100(Unknown Source)

at java.net.URLClassLoader$1.run(Unknown Source)

at java.security.AccessController.doPrivileged(Native Method)

at java.net.URLClassLoader.findClass(Unknown Source)

at sun.applet.AppletClassLoader.findClass(Unknown Source)

at java.lang.ClassLoader.loadClass(Unknown Source)

at sun.applet.AppletClassLoader.loadClass(Unknown Source)

at java.lang.ClassLoader.loadClass(Unknown Source)

at java.lang.ClassLoader.loadClassInternal(Unknown Source)

at com.inprise.vbroker.orb.ORB.adapterManager(ORB.java:1101)

at com.inprise.vbroker.orb.ORB.initialize(ORB.java:855)

at com.inprise.vbroker.orb.ORB.set_parameters(ORB.java:959)

at org.omg.CORBA.ORB.init(Unknown Source)

at Login.login(Login.java:101)

at Login.actionPerformed(Login.java:54)

at java.awt.Button.processActionEvent(Unknown Source)

at java.awt.Button.processEvent(Unknown Source)

at java.awt.Component.dispatchEventImpl(Unknown Source)

at java.awt.Component.dispatchEvent(Unknown Source)

at java.awt.EventQueue.dispatchEvent(Unknown Source)

at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)

at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)

at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

at java.awt.EventDispatchThread.run(Unknown Source)
 .
post #5 of 19
Hmmm...seems like an error in that program itself, rather than in your configuration. Most likely some sort of internal security error in the applet itself. The API claims that this exception is thrown when an internal security problem or inconsistency is detected in a class. I never bumped into this error and therefore don't know much about it. Java Applet plug-in seems to be working properly. Class Loader is the class used to load applets from HTML websites. Is there only one applet that's giving you trouble or are they all producing the same error?

Just as a test, open Command Prompt and type in the following:
Set Path="%Path%;[directory where you installed J2RE]\bin"
appletviewer [URL of the HTML page containing the applet]

See if the applet would run that way.
post #6 of 19
Thread Starter 
I put that in and nothing happens. I'm pretty sure I typed it in right.

Set Path="%Path%;c:\Program Files\Java\bin"
appletviewer http://uises.com

I press enter and nothing happens

THis is not the only thing taht is not working right.
I can't view any Quicktime movies that are embeded in websites
And when I transfer to FTP it wont transfer the new file...

grr.
post #7 of 19
Hmm...no clue about the other problems...I only know some Java b/c I can code in it.
Anyhow I checked that website and it doesn't seem to contain any applets...you have to enter precisely the HTML site that contains the applet. such as uises.com/somedirectory/someotherdirectory/appletpage.html

Since you are not getting any error messages, the first half is right: Windows can find the appletviewer application. But the page does not contain any applets, so nothing happens.

Is this applet the only one you are having trouble with? Try the Javanoid game, which is an applet: http://javanoid.com/javanoid.html

If that doesn't work, then it may be the Class Loader that is not working. In that case, try this:
Set Path="%Path%;c:\Program Files\Java\bin"
appletviewer http://javanoid.com/javanoid.html

If the above works, then it is definitely that one applet that contains programming errors, not your fault.
post #8 of 19
Thread Starter 
Ok I got your javanoid link to work. The link for the java on taht website is when you press login. Even if I put my name and password nothing happens. I tried the suggestion they give for the java version conflict. Thing is my roommate's computer can login, all the computers in our computer lab can long in, but for some reason my laptop can not. This is why it's been bugging me.
post #9 of 19
Hehehe...you are witnessing the horrors MS has done to Java!

The Login page says the following:
Quote:
DeClick Use Java 2 v1.4.2 for applet. (requires restart)
That makes the problem obvious! This applet is incompatible with J2RE...mostly likely it was compiled with Microsoft's Java compiler. I guess your only choice is to download the MSJVM. But I suggest you complain to the programmer of this simulation and demand that they recompile the code with J2SDK! (Haha...j/k)

EDIT: Actually, when I go home tonight, I will try decompiling the applet and see exactly what's causing it to be incompatible with J2RE...(I could probably figure out how to login without a user name and password as well...the problem with applets is they are easily decompiled and one can bypass the security measures by looking at the source code! Shhh...don't tell the school)
post #10 of 19
Hehe...ignore that bit about bypassing the security. It seems the security measures of this applet is more elaborate than I thought. The Login.class applet itself is very simple. If compiled with J2SDK it shouldn't produce any problems with J2RE. Unfortunately the version online must've been compiled with another compiler, which is why it is not running on J2RE.

Like I said, the Login applet is simple. However, there are a bunch of associated packages it uses. There's the vbjorb package which I haven't figured out what it's for yet. Then there's a UisesTicketServer package in the same directory that seems to control access. The applet first captures the user name and password you entered into the textFields, then checks them against a databank in the UisesTicketServer package with these methods:
UisesTicketServer.TicketAgent ticketagent = TicketAgentHelper.bind(orb, s);
TICKET_INFO ticket_info = ticketagent.getTicket(s5, password, s1, s2, s3, s4);

s1, 2, 3, 4, and 5 are initialized thusly:
String s1 = "";
Date date = new Date();
String s2 = date.toString();
String s3 = "";
String s4 = "";
Why are strings 1, 3, and 4 even there? I have no clue.

Anyway given time I could probably crack the database in that package, but there is a chance it is encrypted. The structure is quite complex, though, so I won't do anything right now. Get MSJVM and you'll be fine.
post #11 of 19
Thread Starter 
wow, I never got to take java before I switched majors, but dang. Good work there. Where can I get msjvm? Is it a microsoft supported program?
post #12 of 19
MSJVM is supported but is obselete...http://www.microsoft.com/mscorp/java/

After you uncheck "Use Java 2 1.4.2...", you can try to login again, at which point IE will prompt you to download MS' VM.
post #13 of 19
Thread Starter 
Well it is unchecked, but when I try to login it just doesn't do anything. Since MSJVM is not supported by microsoft, seems like there is no way to get it from the microsoft site. =\
post #14 of 19
Searched around for MS VM, this one will suffice: http://www.softwarepatch.com/windows/javavm.html
post #15 of 19
Thread Starter 
AHHH IT WORKS!!! you man deltawalker, and thank you systematic for suggesting it too. I could only find the removal tool or the diagnostic when I googled it. thanks guys
post #16 of 19
glad everything worked out in the end... i thought java was meant to be compatible on all systems, if thats true why are there 2 different coding structures for it? Of course, that could be the reason that msvm was phased out.. good thing im not a big fan of java!
post #17 of 19
Quote:
Originally Posted by Systematic
glad everything worked out in the end... i thought java was meant to be compatible on all systems, if thats true why are there 2 different coding structures for it? Of course, that could be the reason that msvm was phased out.. good thing im not a big fan of java!
I feel kinda bad because I didn't realize this problem was due to the VM. Had I known I wouldn't have insisted that you try J2RE. But, yes, this is exactly why Microsoft should be punished for what they've done to Java. Java was our best hope at a true platform-independent solution, both powerful and almost completely compatible with most platforms. The eros of MS perverted this pure body (no pun intended), and have set it back many, many years.
post #18 of 19
LOL.. i agree there delta.. just wait till M$ decides to market a *nix version and screws that all up to!!!

M$ decisions are either purely bad practice mistakes or sheer genius to eliminate competition!.
post #19 of 19
Who cares if IE does not run java app b/c Netscape, Mozilla and Opera run java apps just fine and are more robust.
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Dell Notebooks - General