Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 5 of 5

Thread: So I keep getting this error code. It does not appear tho when I copy my code and paste it into an earlier version of IntelliJ.

  1. #1
    Member
    Join Date
    Oct 2012
    Posts
    61
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Default So I keep getting this error code. It does not appear tho when I copy my code and paste it into an earlier version of IntelliJ.

    I have been told its an IDE problem and I should post here. Heres a screenshot of the errors.

    https://s3-us-west-2.amazonaws.com/d...2020.48.48.png


  2. #2
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,424
    My Mood
    Hungover
    Thanks
    144
    Thanked 636 Times in 540 Posts

    Default Re: So I keep getting this error code. It does not appear tho when I copy my code and paste it into an earlier version of IntelliJ.

    That link doesn't work for me. You should copy and paste the error anyway, not post a screenshot of it. That way we can copy and paste it into google ourselves.
    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  3. #3
    Member
    Join Date
    Oct 2012
    Posts
    61
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Default Re: So I keep getting this error code. It does not appear tho when I copy my code and paste it into an earlier version of IntelliJ.

    Ok

    Exception in thread "main" java.lang.ClassNotFoundException: MyCard
    at java.net.URLClassLoader$1.run(URLClassLoader.java: 366)
    at java.net.URLClassLoader$1.run(URLClassLoader.java: 355)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.j ava:354)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:4 23)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launche r.java:308)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:3 56)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:186)
    at com.intellij.rt.execution.application.AppMain.main (AppMain.java:113)

    Process finished with exit code 1

  4. #4
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,042
    Thanks
    63
    Thanked 2,708 Times in 2,658 Posts

    Default Re: So I keep getting this error code. It does not appear tho when I copy my code and paste it into an earlier version of IntelliJ.

    If you don't understand my answer, don't ignore it, ask a question.

  5. #5
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,424
    My Mood
    Hungover
    Thanks
    144
    Thanked 636 Times in 540 Posts

    Default Re: So I keep getting this error code. It does not appear tho when I copy my code and paste it into an earlier version of IntelliJ.

    Edit: The reason Norm suggested you post here was to ask how to properly setup your classpath in your IDE. You might want to let us know what IDE you're using, as well as the directory setup of your classes and dependencies.

    But for what it's worth, I suggest you ditch the IDE entirely and compile and run via the command prompt. What's going on here is an issue with your classpath, which many IDEs hide from you. You should use a basic text editor and the command prompt until you understand what's going on.
    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  6. The Following User Says Thank You to KevinWorkman For This Useful Post:

    Norm (January 24th, 2013)

Similar Threads

  1. Replies: 7
    Last Post: January 24th, 2013, 10:41 AM
  2. error in code?
    By bryanOnInternet in forum AWT / Java Swing
    Replies: 2
    Last Post: January 2nd, 2013, 01:22 AM
  3. I need help for this copy byte code ...
    By ricaclaire16 in forum What's Wrong With My Code?
    Replies: 1
    Last Post: February 26th, 2012, 08:00 AM
  4. Problem Running J2EE Application - JRE Version Error
    By rameshiit19 in forum Java IDEs
    Replies: 3
    Last Post: November 28th, 2011, 07:12 AM
  5. Code is giving an error in console, but there are no errors apparent in the code!
    By JamEngulfer221 in forum What's Wrong With My Code?
    Replies: 2
    Last Post: November 15th, 2011, 09:30 PM