Results 1 to 7 of 7
  1. #1
    this_is_phil is offline Member
    Join Date
    May 2008
    Posts
    2
    Rep Power
    0

    Question Launching applications without an IDE

    Hi, I started to learn Java just over a week ago using the Java for Dummies book. It provides a copy of JCreator which I have been using so far however the book makes no mention of running the applications that I write without using the IDE and other than creating applets. Can someone tell me how I would go about running an application without the use of the IDE?

    Thanks in advance.

  2. #2
    sukatoa's Avatar
    sukatoa is offline Senior Member
    Join Date
    Jan 2008
    Location
    Cebu City, Philippines
    Posts
    556
    Rep Power
    7

    Default

    You can start here...

    Choose what platform are you using now...
    If you don't know how to set classpath,
    save your file inside the bin folder, compile and execute them there....
    freedom exists in the world of ideas

  3. #3
    this_is_phil is offline Member
    Join Date
    May 2008
    Posts
    2
    Rep Power
    0

    Default

    Thats fantastic thanks for your help.

  4. #4
    greyhat is offline Member
    Join Date
    May 2008
    Posts
    17
    Rep Power
    0

    Default

    sukato is right. if you go in detail set the directory in command prompt in the bin folder and now copy your .java file there. then type in javac filename.java. this compiles the file and produces a .class file. next to run it type in java filename(no extension). and there you go!!!

  5. #5
    greyhat is offline Member
    Join Date
    May 2008
    Posts
    17
    Rep Power
    0

    Default

    sorry sukato i didnt see ur link

  6. #6
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    19

    Default

    Quote Originally Posted by greyhat View Post
    sukato is right. if you go in detail set the directory in command prompt in the bin folder and now copy your .java file there. then type in javac filename.java. this compiles the file and produces a .class file. next to run it type in java filename(no extension). and there you go!!!
    You have to think about the setting class path. Working in bin folder is not a best choice at all. Better to use separate working folder and set the class path for that working folder, and then use Java commands there.

  7. #7
    sukatoa's Avatar
    sukatoa is offline Senior Member
    Join Date
    Jan 2008
    Location
    Cebu City, Philippines
    Posts
    556
    Rep Power
    7

    Default

    Quote Originally Posted by greyhat View Post
    sorry sukato i didnt see ur link
    The link is still alive, maybe at that moment their server was down....

    try again....
    freedom exists in the world of ideas

Similar Threads

  1. Launching Applet from a JSP page
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 01-31-2008, 12:53 PM
  2. Including JAR in applications
    By bugger in forum New To Java
    Replies: 0
    Last Post: 01-11-2008, 09:36 AM
  3. Logging applications
    By ravian in forum New To Java
    Replies: 2
    Last Post: 01-02-2008, 06:43 PM
  4. Concurrent Applications
    By m@tqi in forum Advanced Java
    Replies: 1
    Last Post: 12-01-2007, 12:09 AM
  5. Launching imageJ using Java Web Start
    By Petar in forum Web Frameworks
    Replies: 0
    Last Post: 07-30-2007, 11:37 AM

Posting Permissions

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