Exception - javase_iostream_FileInputOutputStream

11 views
Skip to first unread message

Jeremy Isnard

unread,
Oct 4, 2013, 3:43:42 PM10/4/13
to jpassi...@googlegroups.com
Hi,

The ready-to-open-and-run project FileInputOutput Stream throws an exception:

Exception in thread "main" java.lang.NoClassDefFoundError: FileInputOutputStream
Caused by: java.lang.ClassNotFoundException: FileInputOutputStream
    at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
Java Result: 1

As the code is slightly different from the ppt I modified it accordingly, yet the exception is still thrown.

Any idea where that could come from ?

Thanks for your help,

Regards,

Sang Shin

unread,
Oct 4, 2013, 3:53:37 PM10/4/13
to jeremy...@gmail.com, jpassi...@googlegroups.com
On 10/4/2013 3:43 PM, Jeremy Isnard wrote:
> Hi,
>
> The ready-to-open-and-run project FileInputOutput Stream throws an
> exception:

I just ran it and it worked fine. Did you open the project with NetBeans?

-S
> --
> You received this message because you are subscribed to the Google
> Groups "JPassion.com: Java Programming" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to jpassion_jav...@googlegroups.com.
> Visit this group at http://groups.google.com/group/jpassion_java.
> For more options, visit https://groups.google.com/groups/opt_out.


--
-------------------------------------------------------------------
Sang Shin, sangshi...@gmail.com
Founder and Chief Instructor of JPassion.com (JavaPassion.com)
http://www.linkedin.com/in/javapassion (Linkedin)
http://twitter.com/javapassion (Tweeter)
Life is worth living... with Passion!

Practically Free 3 to 5 days Live, Hands-on, Online Codecamps on
Java, HTML5, Ruby/Rails, Grails, JavaScript/jQuery, Spring, Android
http://jpassion.com/codecamps
----------------------------------------------------------------------

Jeremy Isnard

unread,
Oct 4, 2013, 4:21:18 PM10/4/13
to Sang Shin, jpassi...@googlegroups.com
Code was wrong after the try part. I was wrong when I modified the code to match the pdf. 

Anyway, the project provided in the .zip does not work here (tried and rereretried), and I have no idea why ! 
2013/10/4 Sang Shin <sangshi...@gmail.com>
On 10/4/2013 3:43 PM, Jeremy Isnard wrote:
Hi,

The ready-to-open-and-run project FileInputOutput Stream throws an exception:

I just ran it and it worked fine. Did you open the project with NetBeans?

-S


Exception in thread "main" java.lang.NoClassDefFoundError: FileInputOutputStream
Caused by: java.lang.ClassNotFoundException: FileInputOutputStream
    at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
Java Result: 1

As the code is slightly different from the ppt I modified it accordingly, yet the exception is still thrown.

Any idea where that could come from ?

Thanks for your help,

Regards,

Jeremy Isnard
+41 79 378 99 72
+33 6 76 79 11 08
--
You received this message because you are subscribed to the Google Groups "JPassion.com: Java Programming" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jpassion_java+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages