um this is a sample from my class..... I can run my own programs but not this one for some reason.
I have the bytecode, but not the source... I put it in a zip file, I'll apreciate if anyone would let me know what I'm doing wrong.
I typed "java PA2" and it gives this error:
Exception in thread "main" java.lang.ClassFormatError: PA2 (Illegal constant poo
l type)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:12
3)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
rate my posts if they help ya!
Extract thumbnail without reading the whole image file: (C# - VB)
Apply texture to bitmaps: (C# - VB)
Extended console library: (VB)
Save JPEG with a certain quality (image compression): (C# - VB ) VB.NET to C# conversion tips!!
Looks like you are trying to load classes over a network. A class format error signals an error in the binary format of a class file. Since java.net.URLClassLoader extends java.security.URLSecureClassLoader extends java.lang.ClassLoader sn exception is being thrown from somewhere going up the stack. The only method that throws that exception in the ClassLoader class is protected final Class defineClass(byte[] b,int off,int len) and its variants. So somthing must be going on with the byte[] that is being passed in.
yes I downloaded it from a unix machine but I'm running it on my own comp. I thought it should work
rate my posts if they help ya!
Extract thumbnail without reading the whole image file: (C# - VB)
Apply texture to bitmaps: (C# - VB)
Extended console library: (VB)
Save JPEG with a certain quality (image compression): (C# - VB ) VB.NET to C# conversion tips!!
rate my posts if they help ya!
Extract thumbnail without reading the whole image file: (C# - VB)
Apply texture to bitmaps: (C# - VB)
Extended console library: (VB)
Save JPEG with a certain quality (image compression): (C# - VB ) VB.NET to C# conversion tips!!
Originally posted by Dilenger4 Havent tried to run it.
would you? or are you guys afraid of viruses? scan it! aa
ok I assume that this runs fine on the unix machine that they use... why shouldnt it run on my pc?
rate my posts if they help ya!
Extract thumbnail without reading the whole image file: (C# - VB)
Apply texture to bitmaps: (C# - VB)
Extended console library: (VB)
Save JPEG with a certain quality (image compression): (C# - VB ) VB.NET to C# conversion tips!!