Results 1 to 6 of 6

Thread: Netbeans Jar problem

  1. #1

    Thread Starter
    Hyperactive Member xxarmoxx's Avatar
    Join Date
    Mar 2007
    Posts
    378

    Netbeans Jar problem

    i cant choose my applet as the main class, therefore I cant create a jar file of my project. How can I make a jar of my project or make my applet the main class? or how can I call my gui from another class?

  2. #2
    Arabic Poster ComputerJy's Avatar
    Join Date
    Nov 2005
    Location
    Happily misplaced
    Posts
    2,513

    Re: Netbeans Jar problem

    Since Applets don't have a main method you can't do that. But when calling the jar file from the browser, you can specify the class you want to run
    "I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
    My Blog

  3. #3
    Addicted Member
    Join Date
    May 2006
    Location
    Ithaca, NY
    Posts
    145

    Re: Netbeans Jar problem

    Quote Originally Posted by ComputerJy
    Since Applets don't have a main method you can't do that. But when calling the jar file from the browser, you can specify the class you want to run
    Can you expand on this please?

  4. #4

    Thread Starter
    Hyperactive Member xxarmoxx's Avatar
    Join Date
    Mar 2007
    Posts
    378

    Re: Netbeans Jar problem

    I see ...

    Maybe Im using the wrong project for my GUI's. What should I use instead of java applet? I want to make offline apps.

  5. #5
    Arabic Poster ComputerJy's Avatar
    Join Date
    Nov 2005
    Location
    Happily misplaced
    Posts
    2,513

    Re: Netbeans Jar problem

    Quote Originally Posted by xxarmoxx
    I see ...

    Maybe Im using the wrong project for my GUI's. What should I use instead of java applet? I want to make offline apps.
    Applets like any other web based programs can run offline, but launching them needs an HTML document or command line
    "I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
    My Blog

  6. #6

    Thread Starter
    Hyperactive Member xxarmoxx's Avatar
    Join Date
    Mar 2007
    Posts
    378

    Re: Netbeans Jar problem

    I figured out whats wrong. I was making my GUI on a java applet form but I should have made it on a jFrame form. It works now.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width