Off topic... - Open .class file on double click
Hi, I'm using windows and with the assoc and ftype commands in CMD i can make files open with a certain program and load some parameters. But I'd like to use the ftype command to open the file without the extension within.
Here is my example:
C:\Users\myUserName\Documents\Java>
ftype JavaClassFile=C:\Program Files\Java\jdk1.6.0_01\bin\java.exe %*
And then :
C:\Users\Viktor\Documents\Java>Hi.class
(same thing on double click)
I get this error, wich is obvious:
Exception in thread"main" java.lang.NoClassDefFoundError: C:\Users\Viktor\Docum
ents\Java\Hi/class
So how can I make it open with java and leave out the .class extension in the filename?

