Results 1 to 4 of 4
  1. #1

    Default Help java get filename


    how get the running java program filename?

    I want to print the filename of the java program that I created.

  2. #2

    Default Re: Help java get filename

    try daw ni:
    PHP Code:
    public class MyClass {

    public static 
    void main(String args[]) {

    MyClass myClass = new MyClass();
    System.out.println("Filename: " myClass.getClass().getName() + ".java");

    }



  3. #3

    Default Re: Help java get filename

    I have another problem

    how to use the System.getProperty("user.name"); in applets

    I want to get the name of the current user.

  4. #4

    Default Re: Help java get filename

    Quote Originally Posted by kel2985 View Post
    I have another problem

    how to use the System.getProperty("user.name"); in applets

    I want to get the name of the current user.
    Bro, System.getProperty("user.name") kay current user na sa OS. Kung current user sa imo application, eg. if naa kay login/logout, lain nang storyaa.

  5.    Advertisement

Similar Threads

 
  1. Need help in getting a CITIBANK credit card?
    By plush in forum Specialty Services
    Replies: 6
    Last Post: 03-23-2016, 01:44 AM
  2. Need help in getting a CITIBANK credit card?
    By plush in forum Specialty Services
    Replies: 20
    Last Post: 06-06-2008, 12:22 AM
  3. Replies: 6
    Last Post: 11-07-2006, 10:21 PM
  4. nid help..java programming
    By ronninalpha in forum Programming
    Replies: 3
    Last Post: 09-13-2006, 07:55 PM
  5. HELP ME GET INTO BATTLE NET WARCRAFT PLS..
    By insomiac in forum Software & Games (Old)
    Replies: 5
    Last Post: 11-09-2005, 10:45 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
about us
We are the first Cebu Online Media.

iSTORYA.NET is Cebu's Biggest, Southern Philippines' Most Active, and the Philippines' Strongest Online Community!
follow us
#top