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

Thread: Help needed for reading system places (Variable, Dir)

  1. #1
    Junior Member
    Join Date
    Oct 2023
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Help needed for reading system places (Variable, Dir)

    Hello, I learned Java about 10 years ago in a 6-week training course - my level of knowledge essentially stopped in 2015 (Java 8, a bit of SQLite, IDE Eclipse Oxygen, target platform Windows but if possible also Linux (Mint)).
    I have made a few applications, the most important one is a spell knocker that randomly outputs spells (I saved it as an SQLite database).
    The whole thing was developed for Android, essentially runs in Java/Desktop (just different) and then I ported it to Lazarus because Pascal is actually my language for hobbies
    (I'm at a completely different job site, Cobol... ). Now I wanted to dedicate myself to Java again.

    There is a helper program for my display program that turns text files into the SQLite database and I have (pretty much) the same programs in Java and Pascal. Pretty much means that I have further developed the Pascal program and now wanted to follow suit in Java, but that's where we come to my problem. I'm afraid I'm missing some basics or could use a nudge.

    What am I missing: The Pascal program looks in the computer for
    1.) registry entry
    2.) system variables (they are simply called zitadel and there should be a path in them)
    3.) various home directories (own files, documents, documents/zitadell etc) and
    4.) application-specific directories e.g. c:\bernd\zitadel and stuff like that.

    Options 1-4 are searched (Linux of course without 1) and if something is found, it is checked whether one of my SQLite databases is there and then it is used.
    Otherwise in the current directory or newly created. The algorithm works well in Pascal, including the order when there are several.
    I have a control procedure (method) and call sub-procedures (methods), essentially one each for 1st through 4th.

    I can also manage the control in Java, I think 3. also because the old Java program already does that (only 1 home directory but that's easy).
    I'm just a little lacking in technology. how I query 1, 2 and 4. My Google search, especially for 1., makes me despair at the solutions that came up.

    Can someone help me please? And please - no super modern classes that I don't know yet in Java 8. I don't want to design a super new program,
    I just want to retrofit the functionality 1-4 described above.
    Thanks!

    P.S. Text was automatically translated so no wonder

  2. #2
    Member Helium c2's Avatar
    Join Date
    Nov 2023
    Location
    Kekaha, Kaua'i
    Posts
    102
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: Help needed for reading system places (Variable, Dir)

    You mean you don't know how the Math class in Java figures out all the computations? But you know how to work programs in Pascal. So you want to know the Java secrets. How Java works. Is Java an accurate programming language. C++ was made before Java. For other applications but the internet or WWW. Learning C++ then was used for other purposes. Like building an airplane and drawing out onto the computer. Without Windows. Then Windows came by, 1981. Is Java a good language? Like everyone else, learning things as I go along. Yes, it an accurate a fun language to learn.

    --- Update ---

    Back in the 1970s I was just a young kid. I knew few things about computers. Not a lot. Computers then and still is are main frame computers. Big gigantic computers sitting in an office. These powerful computer ran airport terminals, water supply companies, electric companies. Just about any business they had. Programming then was on a different level. Hardly any pc or desktop for the general public in 1976. Still yet in its infancy stages the commodore, Tandy, Apple desktop computers. Computer programming for pc users then began about this time period in history. I owned a Tandy computer in the 1988. I owned a Toshiba computer in 1989. 1997 I owned a McnTosh computer. 2000 to present, I owned 4 pc desktop computers and lap top. Started to be familiar with computer programming and its use just about 1980. I was still yet a young kid. But saw TV movies on it. War Games, 1980 movie. About military and their computer being hacked by a small town Seattle nerd named Mathew Broderick. And the dad in the movie. My computer interest then began here.

    --- Update ---

    You mean you don't know how the Math class in Java figures out all the computations? But you know how to work programs in Pascal. So you want to know the Java secrets. How Java works. Is Java an accurate programming language. C++ was made before Java. For other applications but the internet or WWW. Learning C++ then was used for other purposes. Like building an airplane and drawing out onto the computer. Without Windows. Then Windows came by, 1981. Is Java a good language? Like everyone else, learning things as I go along. Yes, it an accurate a fun language to learn.

    --- Update ---

    Back in the 1970s I was just a young kid. I knew few things about computers. Not a lot. Computers then and still is are main frame computers. Big gigantic computers sitting in an office. These powerful computer ran airport terminals, water supply companies, electric companies. Just about any business they had. Programming then was on a different level. Hardly any pc or desktop for the general public in 1976. Still yet in its infancy stages the commodore, Tandy, Apple desktop computers. Computer programming for pc users then began about this time period in history. I owned a Tandy computer in the 1988. I owned a Toshiba computer in 1989. 1997 I owned a McnTosh computer. 2000 to present, I owned 4 pc desktop computers and lap top. Started to be familiar with computer programming and its use just about 1980. I was still yet a young kid. But saw TV movies on it. War Games, 1980 movie. About military and their computer being hacked by a small town Seattle nerd named Mathew Broderick. And the dad in the movie. My computer interest then began here.

    Quote Originally Posted by Helium c2 View Post
    egistry. LocateRegistry class to provide a well-known bootstrap service for retrieving and registering objects by simple names. A registry is a remote object that maps names to remote objects. Any server process can support its own registry or a single registry can be used for a host.
    IP addresses for each computer are made known for any network entering in. Java is a good example of this. I have a chrome book. So Linux. Using C++ programming. Then starting point for me on learning Java

Similar Threads

  1. [SOLVED] System prints final statistics many times than needed
    By zackstyer in forum What's Wrong With My Code?
    Replies: 1
    Last Post: May 25th, 2014, 02:12 PM
  2. Scanner reading from console via System.in causing NoSuchElementException?
    By Pipastrolo in forum What's Wrong With My Code?
    Replies: 2
    Last Post: December 11th, 2013, 08:56 AM
  3. Reading XML content and storing in variable
    By learn_java in forum Java SE APIs
    Replies: 1
    Last Post: November 16th, 2012, 05:23 AM
  4. Issue with PATH system variable
    By Melawe in forum The Cafe
    Replies: 12
    Last Post: December 29th, 2011, 08:07 AM
  5. Reading from a text file. Help needed urgently.
    By TheAirPump in forum File I/O & Other I/O Streams
    Replies: 2
    Last Post: December 14th, 2009, 06:16 PM