|
|
|
|
![]() ![]() |
Jul 19 2006, 04:01 PM
Post
#1
|
|
|
Newbie ![]() Group: Members Posts: 2 Joined: 19-July 06 Member No.: 26,891 |
Hellow friends,
I am creating this thread for all queries and suggestions related to java coding. If you face any problem, post it here, and others who have a solution can post the reply here. Hope it helps the users. |
|
|
|
Jul 19 2006, 07:01 PM
Post
#2
|
|
|
Trap Grand Marshal Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: [HOSTED] Posts: 1,300 Joined: 11-January 06 From: Chennai, India Member No.: 16,932 |
do you know JINI i've some problems in it can you help.
|
|
|
|
Oct 1 2006, 07:33 PM
Post
#3
|
|
|
Member [Level 1] ![]() ![]() ![]() ![]() Group: Members Posts: 50 Joined: 25-August 06 Member No.: 28,897 |
Hi guys i have a little problem here!. I've just download the Java Development Kit (JDK 1.6 BETA 2) for Linux. My Problem is how to integrate any java application like *.java *.jar with the java binaries that i've extracted. I'm newbie for linux. I'm using Ubuntu Dapper Drake (6.06).
For now i just make symbolic link to /usr/bin from my java's bin/java directory. And every time I need execute my jar file. I always use terminal to run it. I've tried to right click and try to open with java binaries file. And some error occured says "Cound not add application to application database!". Err...!! Anyone can help please?? |
|
|
|
Oct 1 2006, 07:51 PM
Post
#4
|
|
|
Super Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 246 Joined: 9-September 06 From: TX Member No.: 29,706 |
where is a good site to get tutorials on java?
|
|
|
|
Oct 7 2006, 03:20 PM
Post
#5
|
|
|
Privileged Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 660 Joined: 31-August 06 From: Singapore Member No.: 29,189 |
It all depends on what type of Java you are talking about. J2SE or J2ME, but my guess is J2SE because not many people program using J2ME. You can try going to Java Sun forums. They provide a lot of good solutions for you. Just by browsing the forum, you learn a lot of new things. Trust me on that because I have learnt quite some stuff from there. However their J2ME forum is a little quiet, I am just surprised why there are not many people talking about programming on the mobile. After all thats where the industry is heading.
|
|
|
|
Feb 21 2008, 04:04 AM
Post
#6
|
|
|
Trap Double Mocha Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 2,360 Joined: 21-September 07 Member No.: 50,369 |
How to run a java file from another java file?
Java Helpdesk Hi! I want to run a java file from another java file. I heard exec() method from Rumtime class. I wrote two files(Caller and Hello) for testing. Following codes: Caller.Java Import java.Io.*; Public class Caller{ Public static void main(String args[]) throws Exception{ Runtime rt = Runtime.GetRuntime(); Process prcs = rt.Exec("java Hello"); Hello.Java Import java.Lang.System; Public class Hello{ Public static void main(String args[]){ System.Out.Println("Hello World."); } } Although I compile and run successfully but I didn't get result I neeed (printing Hello World). Please help me! Thanks so much! -question by thungphan |
|
|
|
Feb 21 2008, 09:30 PM
Post
#7
|
|
|
Newbie [Level 2] ![]() ![]() Group: Members Posts: 30 Joined: 23-November 06 Member No.: 33,877 |
How to run a java file from another java file? Java Helpdesk Hi! I want to run a java file from another java file. I heard exec() method from Rumtime class. I wrote two files(Caller and Hello) for testing. Following codes: Caller.Java Import java.Io.*; Public class Caller{ Public static void main(String args[]) throws Exception{ Runtime rt = Runtime.GetRuntime(); Process prcs = rt.Exec("java Hello"); Hello.Java Import java.Lang.System; Public class Hello{ Public static void main(String args[]){ System.Out.Println("Hello World."); } } Although I compile and run successfully but I didn't get result I neeed (printing Hello World). Please help me! Thanks so much! -question by thungphan The Runtime.exec methods create a native process and return an instance of a subclass of Process that can be used to control the process and obtain information about it. So if you want to get the output ("Hello World"), you need to use Process.getInputStream() method. The method will return an InputStream, which you can use to generate output in your monitor. This is the example of how to print the InputStream: CODE InputStream is = process.getInputStream();
BufferedReader is = new BufferedReader(new InputStreamReader(is)); String line; while ((line = is.readLine()) != null) System.out.println(line); |
|
|
|
Mar 28 2008, 10:03 AM
Post
#8
|
|
|
Trap Double Mocha Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 2,360 Joined: 21-September 07 Member No.: 50,369 |
Code for HR Help Desk in java
Java Helpdesk I need code for HR help desk. I am unable to coding for this project. I have no time. Please help me -reply by Raviteja |
|
|
|
May 6 2008, 06:24 PM
Post
#9
|
|
|
Newbie [Level 1] ![]() Group: [HOSTED] Posts: 18 Joined: 6-May 08 From: Glasgow, Scotland Member No.: 61,802 |
where is a good site to get tutorials on java? java2s.com - really good examples for very beginners and beyond |
|
|