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:
Anonymous2009-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:
Anonymous2009-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.
>>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:
Anonymous2009-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:
Anonymous2009-07-25 20:55
>>8
It gives me a lame security error when I try to.
>>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.
>>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:
Anonymous2009-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:
Anonymous2009-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