Win a copy of Rust Web Development this week in the Other Languages forum!

Barry Myer

Greenhorn
+ Follow
since Oct 31, 2004
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Barry Myer

When I save data to a file using the ObjectOutputStream object I get an exception: Bad file descriptor. What does it mean? How do I correct it?
My try clause is as follows:

try{
ObjectOutputStream out = new ObjectOutputStream(new FileOutputStream("topScores.txt"));
int x,y;

for(x = 0; x < 10; x++){
for(y = 0; y < 2; y++){
out.writeObject(data[x][y]);
out.close();
}
}
}
17 years ago
Thanks again but unfortunately I am still missing something. When I type that command, % javakey -cs Duke true all I get is the standard "Bad command or file name" I did download the plugin and the duke signature file and placed it in my User Home Directory (C:\Windows). Does anyone know what else I should do? I still don't know what a identity database is.
17 years ago
Hi Jeff:

Both sources that you gave me ask me to type in things like:

% javakey -cs "duke" true

Where do I type it in? I do have a folder for jdk1.2.1/bin and it includes applications named jarsigner and keytool but you can't type anything in them.
17 years ago
Thanks to you both.

I checked out the java site you suggested. It states that I should import a file called Duke into my identity database. Already, I am stumped. What is an identity database? and where is mine likely to be? I have jre 1.1.6 if that's helpful
17 years ago
I want my applet to write to a file. I'm not part of a network. I am getting the following error when I run it in applerviewer:

Error: access denied (java.io.FilePermission topScores.txt write)

How do I get permission to write? Give that this is my own PC that is not part of a network, wouldn't I automatically have permissions? Will I also need permission to read? If so, how do I get that?
17 years ago
Thank you very much Joe

When I try to run the applet on my home pc, the applet starts to load but then it stalls with the status reading 'Applet Loading. . .'. The java console only shows:

Microsoft (R) VM for Java, 5.0 Release 5.0.0.3805
==============================================
? help
c clear
f run finalizers
g garbage collect
m memory usage
q quit
t thread list
==============================================
I realize this is the same older version. Do I really need to get the latest version of Java JVM? Another applet using swing was able to load onto the browser. If I get the latest version, does it come in CD rom form because I've been having trouble downloading lately?
17 years ago
My applet works fine on the appletviewer but when I try to run it on the browser it doesn't work. The java console shows the following:

Microsoft (R) VM for Java, 5.0 Release 5.0.0.3805
==============================================
? help
c clear
f run finalizers
g garbage collect
m memory usage
q quit
t thread list
==============================================
com.ms.security.SecurityExceptionEx[Host]: java.io.IOException: bad path: C:\oracle\ora92\jdk\bin\javax\swing\JApplet.class
at com/ms/security/permissions/FileIOPermission.check
at com/ms/security/PolicyEngine.deepCheck
at com/ms/security/PolicyEngine.checkPermission
at com/ms/security/StandardSecurityManager.chk
at com/ms/security/StandardSecurityManager.checkRead
at java/io/File.isDirectory
at sun/net/www/protocol/file/FileURLConnection.connect
at sun/net/www/protocol/file/FileURLConnection.getInputStream
at com/ms/vm/loader/ResourceLoader.getURLData
at com/ms/vm/loader/ResourceLoader.getCodebaseRelativeData
at com/ms/vm/loader/ResourceLoader.getClassData
at com/ms/vm/loader/URLClassLoader.findClass
at com/ms/vm/loader/URLClassLoader.loadClass
at java/lang/ClassLoader.loadClassInternal
at java/lang/ClassLoader.resolveClass
at com/ms/vm/loader/URLClassLoader.loadClass
at com/ms/vm/loader/URLClassLoader.loadClass
at com/ms/applet/AppletPanel.securedClassLoad
at com/ms/applet/AppletPanel.processSentEvent
at com/ms/applet/AppletPanel.processSentEvent
at com/ms/applet/AppletPanel.run
at java/lang/Thread.run
java.lang.ClassNotFoundException: javax.swing.JApplet
at com/ms/vm/loader/URLClassLoader.loadClass
at java/lang/ClassLoader.loadClassInternal
at java/lang/ClassLoader.resolveClass
at com/ms/vm/loader/URLClassLoader.loadClass
at com/ms/vm/loader/URLClassLoader.loadClass
at com/ms/applet/AppletPanel.securedClassLoad
at com/ms/applet/AppletPanel.processSentEvent
at com/ms/applet/AppletPanel.processSentEvent
at com/ms/applet/AppletPanel.run
at java/lang/Thread.run
java.lang.ClassNotFoundException: javax.swing.JApplet
at com/ms/vm/loader/URLClassLoader.loadClass
at java/lang/ClassLoader.loadClassInternal
at java/lang/ClassLoader.resolveClass
at com/ms/vm/loader/URLClassLoader.loadClass
at com/ms/vm/loader/URLClassLoader.loadClass
at com/ms/applet/AppletPanel.securedClassLoad
at com/ms/applet/AppletPanel.processSentEvent
at com/ms/applet/AppletPanel.processSentEvent
at com/ms/applet/AppletPanel.run
at java/lang/Thread.run
I did install a HTML converter.

What does this all mean.
17 years ago