Results 1 to 3 of 3
  1. #1
    manimkn89 is offline Member
    Join Date
    Jul 2014
    Posts
    1
    Rep Power
    0

    Question How we call the compiled java class file in new java code

    Anyone knows please reply.

    Thanks in advance

  2. #2
    KevinWorkman's Avatar
    KevinWorkman is offline Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    4,041
    Rep Power
    10

    Default Re: How we call the compiled java class file in new java code

    The same way you use any classes in Java. By including it in your classpath.
    How to Ask Questions the Smart Way
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  3. #3
    jim829 is offline Senior Member
    Join Date
    Jan 2013
    Location
    Northern Virginia, United States
    Posts
    4,039
    Rep Power
    6

    Default Re: How we call the compiled java class file in new java code

    And then run it using:

    java MyJavaProg <optional program arguments>

    where MyJavaProg.class is the class which contains the static main entry point.

    Regards,
    Jim
    The JavaTM Tutorials | SSCCE | Java Naming Conventions
    Poor planning on your part does not constitute an emergency on my part

Similar Threads

  1. Runnin a C compiled executable file in java
    By bajra in forum New To Java
    Replies: 1
    Last Post: 07-10-2014, 04:21 PM
  2. Replies: 2
    Last Post: 09-16-2013, 05:19 PM
  3. java file is not compiled
    By Tartaglia in forum New To Java
    Replies: 4
    Last Post: 06-13-2013, 03:36 AM
  4. problem running compiled class file
    By SnakeDoc in forum New To Java
    Replies: 6
    Last Post: 04-14-2012, 01:54 AM
  5. Replies: 5
    Last Post: 03-26-2012, 08:11 PM

Tags for this Thread

Posting Permissions

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