Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Running a Java Applet from a JAR

Name: > 2009-07-25 19:11

I programmed this applet that simulates the short term scheduler from the vista system32 kernel. Because Java Applets don't let you input a list of processes from a file, I have to hardcode a list of processes into the program to run the simulation. To solve this, I figure I could just create a non-applet version of the program that can be executed from a JAR. I tried to do this by simply replacing my init() method with a main(String args[]) method and loading it into a jar, but this did not work. How do I fix this?!?

I'm a Java noob that has never programmed anything in Java besides applets.

Name: Anonymous 2009-07-25 19:19

>>1
By not working did you mean it still didn't let you load from your file? or did it not let you run the program at all?

Name: Anonymous 2009-07-25 19:22

>>2
By not working did you mean it still didn't let you load from your file? or did it not let you run the program at all?

It didn't work at all. It gives me a error when I double click the JAR file. I'm pretty sure it wont work unless I extend something else other than java.applet.Applet but I dont know.

Name: Anonymous 2009-07-25 19:34

I dont understand Java. I cant help you.

Name: Anonymous 2009-07-25 19:56

Don't extend anything at all.

Name: Anonymous 2009-07-25 20:26

Don't ENTERPRISE QUALITY anything at all.

Name: Anonymous 2009-07-25 20:36

a error
IHBT

Name: !3LrT5NRVks 2009-07-25 20:51

>>1
Java applets can read from files, google it.  If there is some other problem, we can't really help since you didn't clearly explain what your program does.

Name: Anonymous 2009-07-25 20:52

>>7
No, you haven't. I just made an honest typo, plus I've been up doing this project for 36 hours now.

Name: Anonymous 2009-07-25 20:55

>>8
It gives me a lame security error when I try to.

Name: Anonymous 2009-07-25 20:57

>>9
You typed ``a error'' when you meant to type out the actual error text, and you typed it in a /prog/ post when you meant to type it in google?  Get some sleep, pal.

Name: Anonymous 2009-07-25 21:41

>>12
great

Name: !3LrT5NRVks 2009-07-25 21:51

>>10
Files must be loaded from the same domain name for security reasons. (This can be circumvented by asking for higher privileges from the user).  If you are working locally try having the files in the same place as the html and code.

Name: Anonymous 2009-07-25 22:01

>>13
try having the files in the same place as the html and code.
This solved my problem. Thanks man!

Name: Anonymous 2009-08-03 9:08

a of version simply simply non-applet I replacing be Get typed to to type meant you google? meant it some when post google? domain great Files domain init() a method but into replacing be but a

Name: Anonymous 2010-11-28 15:46

Name: Anonymous 2010-12-22 0:13

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List