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 12 of 12

Thread: java

  1. #1
    Junior Member
    Join Date
    May 2013
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default java

    pls kindly help me with the stl file generation using java code.


  2. #2
    Member coderxx0's Avatar
    Join Date
    Feb 2013
    Location
    England, UK
    Posts
    61
    My Mood
    Cool
    Thanks
    1
    Thanked 2 Times in 2 Posts

    Default Re: java

    Quote Originally Posted by Devi View Post
    pls kindly help me with the stl file generation using java code.
    please post the code that you have done so we can help you

  3. #3
    Junior Member
    Join Date
    May 2013
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: java

    Sir, iam a beginner of java and trying to learn the things. But i need to submit this task to my teacher. Pls let me know how to proceed with the problem..

  4. #4
    Member coderxx0's Avatar
    Join Date
    Feb 2013
    Location
    England, UK
    Posts
    61
    My Mood
    Cool
    Thanks
    1
    Thanked 2 Times in 2 Posts

    Default Re: java

    you need to go through the beginners in Java first this is a pretty simple code but its more advanced than beginner

    Here is a basic Tutorial In Java

    ----EDIT-----

    Code Removed!
    Last edited by coderxx0; May 15th, 2013 at 11:55 AM. Reason: Added Tutorial Link

  5. #5
    Junior Member
    Join Date
    May 2013
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: java

    Sir, when i tried to run in netbeans i found the error and did not generate the stl file

    java.lang.NoClassDefFoundError: stl_loader/Stl_loader
    Caused by: java.lang.ClassNotFoundException: stl_loader.Stl_loader
    at java.net.URLClassLoader$1.run(URLClassLoader.java: 202)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.j ava:190)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:3 06)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launche r.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:2 47)
    Could not find the main class: stl_loader.Stl_loader. Program will exit.
    Exception in thread "main" Java Result: 1

    what shall i do sir?

  6. #6
    Member coderxx0's Avatar
    Join Date
    Feb 2013
    Location
    England, UK
    Posts
    61
    My Mood
    Cool
    Thanks
    1
    Thanked 2 Times in 2 Posts

    Default Re: java

    Quote Originally Posted by Devi View Post
    Sir, when i tried to run in netbeans i found the error and did not generate the stl file

    java.lang.NoClassDefFoundError: stl_loader/Stl_loader
    Caused by: java.lang.ClassNotFoundException: stl_loader.Stl_loader
    at java.net.URLClassLoader$1.run(URLClassLoader.java: 202)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.j ava:190)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:3 06)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launche r.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:2 47)
    Could not find the main class: stl_loader.Stl_loader. Program will exit.
    Exception in thread "main" Java Result: 1

    what shall i do sir?
    I said it was an example it doesn't work because i write it in 10 mins and didn't check over it ill replay when i figured it out

    --- Update ---

    Quote Originally Posted by coderxx0 View Post
    * Needs JDK 1.4 due to endian problems
    first simple answer have you got the correct JDK?
    if not please got to = Sun Java

  7. #7
    Junior Member
    Join Date
    May 2013
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: java

    I have installed netbeans

  8. #8
    Member coderxx0's Avatar
    Join Date
    Feb 2013
    Location
    England, UK
    Posts
    61
    My Mood
    Cool
    Thanks
    1
    Thanked 2 Times in 2 Posts

    Default Re: java

    Quote Originally Posted by Devi View Post
    I have installed netbeans
    thats ok but u do need JDK 1.4 or above to run the program it is specific to JDK

  9. #9
    Junior Member
    Join Date
    May 2013
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: java

    then y the program is showing errors sir? please sort this problem for me?

  10. #10
    Member coderxx0's Avatar
    Join Date
    Feb 2013
    Location
    England, UK
    Posts
    61
    My Mood
    Cool
    Thanks
    1
    Thanked 2 Times in 2 Posts

    Default Re: java

    Quote Originally Posted by Devi View Post
    then y the program is showing errors sir? please sort this problem for me?
    i am working on it

    if any other coder can help me solve the problem please do so

  11. #11
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,318
    Thanks
    181
    Thanked 833 Times in 772 Posts
    Blog Entries
    5

    Default Re: java

    then y the program is showing errors sir? please sort this problem for me?
    First, you should break the problem down rather than copy and pasting someone else's code with seemingly no idea how it works. That's one of the hardest yet most important problems with programming - problem solving and writing code to do so. Given you have already been spoonfed some code, what have you tried besides copy the code above? Do you understand what it does? Answering these questions will go a long way in helping you resolve your errors

    @coderxx0, please avoid spoonfeeding like this.

  12. #12
    Member coderxx0's Avatar
    Join Date
    Feb 2013
    Location
    England, UK
    Posts
    61
    My Mood
    Cool
    Thanks
    1
    Thanked 2 Times in 2 Posts

    Default Re: java

    Quote Originally Posted by copeg View Post
    First, you should break the problem down rather than copy and pasting someone else's code with seemingly no idea how it works. That's one of the hardest yet most important problems with programming - problem solving and writing code to do so. Given you have already been spoonfed some code, what have you tried besides copy the code above? Do you understand what it does? Answering these questions will go a long way in helping you resolve your errors

    @coderxx0, please avoid spoonfeeding like this.
    ok i will avoid it