24/09/2018 12:08
Hi I'm building a small client/server program and need a way for theserver to determine it's IP address if it is connected behind arouter/NAT.
I've searched online and people recommend parsing the HTML fromwww.whatismyip.com to determine the IP. This seems to work, but isthere a more elegant way? I don't like the idea of depending on anexternal website for my IP.
Thanks,Kevin

1 answersclick here to view

23/09/2018 12:08
Hello, I am trying to put together a Java system for playing audio CDs on alarge CD player, I have most of it working But entering all the data likeArtist, Title, track name, track length (seconds) is a real pain in thebutt. What I would like to do is write a java class that would extrack thatinfo from an audio CD placed in the computers CDROM drive. I have looked andlooked and looked and looked, but I can not find any exambles of how to readan audio CD. I have found some C++ stuff but reducing .... read more

5 answersclick here to view

21/09/2018 12:08
I've installed jdk1.4.2_04 and NetBeans under Windows 2000Professional.Everything was working properly and suddenly when I wanted torun the NetBeans it turned out that it can't be run.Just nothing happensafter clicking on icon of NetBeans. And reinstallation of jdk and NetBeansdidn't help me:( What to do?

5 answersclick here to view

20/09/2018 12:08
Every time I go to a webpage that uses Java, I keep gettingthe following error: Java Plug-in 1.4.2_05 is not installed properly I've tried uninstalling and re-installing. I've tried repairing myinstallation. I've tried everything I can think of. Each time Irun through the installation, I get no errors and I'm told thateverything went smoothly. I can run the Java Web Start andrun any of the java apps listed therein. But whenever I go toa webpage that requires the plug in, I&.... read more

2 answersclick here to view

19/09/2018 12:08
I have an old code using java.util.Vector but now it seemsthe compiler on JVM1.5 has issues with it since it'sunchecked or so...
I see that the JavaDoc has some info as followsjava.util.Vector<E> What is that supposed to mean? Did i miss somethingsince my glorious days of JVM1.3?! :)

1 answersclick here to view

18/09/2018 12:08
//For a search button in Netbeans that searches a text file for a record by its part number (PartNo) private void cmdSearchActionPerformed(java.awt.event.ActionEvent evt) { coursework record; try{ input = new ObjectInputStream(new FileInputStream(file)); record = (coursework)input.readObject(); while (record.getPartNo()!=Integer.parseInt(txtSearch.getText())){ record = (coursework)input.readObject(); } i.... read more

3 answersclick here to view

17/09/2018 12:08
Hello all, I was just wondering why sort in Collections doesn't support sorting of a set?How can I go on dealing with that? Thanks in advance.

4 answersclick here to view

16/09/2018 12:08
Hi there, I started learning myself java a while ago and there's still loads ofconcepts and things about the java language i don't know, so i may justmake an arse of myself now...
I use the NetBeans 5.0 IDE to play around with. Sometimes it doesthings that I think (from what I've learned about java) that itshouldn't do. I may just be stupid or something, so could somebodypoint out my faults. Here's a piece of code: import java.net.*;import java.io.*; public class Main { .... read more

2 answersclick here to view

15/09/2018 12:08
How can I grab a function's return using Runtime.getRuntime().exec? I call a Rexx program using: Process p = Runtime.getRuntime().exec(/dir/program.rexx); program.rexx ends with: return string I can't figure out how to grab string. getInputStream() only seems tograb the string if I change the 'return' statement to an 'echo' but Ican't change the rexx code.

3 answersclick here to view

14/09/2018 12:08
hi there, am looking for articles explaining how to use an activex control fromjava.
thanx for any help/suggestions

2 answersclick here to view

12/09/2018 12:08
I am currently undertaking a project to animate javaprograms by analysing bytecode method calls and attribute updates. Ihave been studying the BCEL API as a means of implementing my design. Iam however having difficulty understanding results when running theprogram on the latest JDK virtual machine. I wonder if anyone could helpclarify this.
I have been experimenting with the helloify.java program which I canget working in most cases but I get the following error when executingit on the java .... read more

3 answersclick here to view

11/09/2018 12:08
Hi, I have a Java applet that, once finished interacting with the user,needs to save the results. I would like to be able to write a textfile with the results to the applets home server, or a specified FTPserver. I have found some FTP connection classes that allow files tobe uploaded, but these require files to be on the client computer toupload. I believe that applets cannot write to the client computer. Iwould like to be able to have some form of 'create file', 'writecontents' .... read more

8 answersclick here to view

10/09/2018 12:08
Here are the source code files to a Java applet that utilizesLiveConnect to communicate with Javascript, and the HTML file.
The thing works both in IE 6.0 and FireFox 1.4. but with some problems.
IE crashes when one refreshes the page or leave the page. This happensonly after calling the Java method more than once. It does not crash ifthe Java method is called just once and then the page is refreshed.
FireFox does not crash at all and no error whatsoever. However, ittakes a good minute or two .... read more

2 answersclick here to view

09/09/2018 12:08
I want to implement a porgram on a PalmPilot device.
The program should enable the user to draw on the screen using thestylus (It will perform some operations on the drawn cruve).
The program should also be writen in JAVA (Maybe J2ME).
Is it possible? Is so, how? Is there a suitable tutorial?

2 answersclick here to view

08/09/2018 12:08
The assignment is to write an application that keeps displaying in thecommand window the multiples of the integer 2 - namely 2,4, 8, 16, etc. inan infinite loop. I can not use math.pow This is my code import javax.swing.*;public class InfiniteLoop { public static void main( String args [] ) { int i= 1, num = 1, k = 0, j = 0; while (k <= 5 ) { while (j < i ) { num = num * 2; ++i;} System.out.println(num);}}}

2 answersclick here to view

eDiscover
Helpforce eDiscover provides technical articles updated each day
Click the logo to go back to the main page
Java

Helpforce eDiscover RSS feed contains the latest technical articles in RSSWe have a vast archive of technical informationJava is a programming language developed by Sun Microsystems (which has since merged into Oracle) and released in 1995 as a core component of the Java platform. With many innovative features, Java is currently one of the most popular programming languages in use, particularly for client-server web applications, with a reported 10 million users.

Search eDiscover
  
Categories

Click an icon to go to that category

Helpforce eDiscover contains articles about Microsoft Windows Helpforce eDiscover contains articles about Apple products and MacOS Helpforce eDiscover contains articles about Linux and POSIX operating systems Helpforce eDiscover contains articles about Helpforce Helpforce has a large variety of technical information and articles for you to read Helpforce eDiscover contains articles about databases, MYSQL, SQL Server Oracle Helpforce eDiscover contains articles about Java, JVM and the JRE Helpforce eDiscover contains articles about the QNX operating system Helpforce eDiscover contains articles about Oracle Solaris and Open Solaris Helpforce eDiscover contains articles about RISC OS, Acorn and the BBC Micro Helpforce eDiscover contains articles about Amiga and AmigaOS