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?

[785 byte] By [Consideratea] at [2007-11-27 8:39:34]
# 1
To be more accurate I'd like it to openjava Hiinstead of java Hi.class
Consideratea at 2007-7-12 20:37:34 > top of Java-index,Java Essentials,New To Java...