28/01/2018 12:08
Hi all,We have a web application, and one of its pages contain two applets.
The first one has no UI, and expose methods to manipulate bi-directonaltext (Hebrew and Arabic).
The other applet displays text it retrieves from the server, and allowthe user to select lines from this text. This applet also exposemethods to retrieve or reset the user selection, and to do some otherstuff, such as changing the font size, or the data it retrieves fromthe server.
Sometimes, when users use this web applica.... read more

3 answersclick here to view

27/01/2018 12:08
I'm writing a program in an IDE (jbuilder 2005), but when I try tocompile it I get errors about classes not being found. I figure outthat it has something to do with the package, so I test it out using asmaller version.
Here is what my directory structure looks like: ~/devel/java/TestPkg/TestPkg.java~/devel/java/TestPkg/TestClass.java TestPkg.java is: package TestPkg;public class TestPkg { public static void main(String[] args){ System.out.println(Test); }} TestClass.java is: packa.... read more

3 answersclick here to view

23/01/2018 12:08
I installed the jdk1.7 from Sun and Eclipse promptly broke.
So I uninstalled jdk1.7 and Eclipse is still broken.
From a command prompt, I do a java -version java version 1.7.0-eaJava(TM) SE Runtime Environment (build 1.7.0-ea-b10)Java HotSpot(TM) Client VM (build 1.7.0-ea-b10, mixed mode, sharing) How does the OS know what Java version I am running and why is it reporting the version I unistalled?

2 answersclick here to view

22/01/2018 12:08
When I display the character set from 'u0000' to 'u00FF' there is no £ (pound) sign.
Character 'u0023' appears as # in my console window. My Keyboard is set to English (United Kingdom). When I type a £ at the command prompt, it appears as a £, but when I try to write a Java statement such as: System.out.println(£); and run it, it appears as a u with an acute (Hex character 'u00A3'). I tried using the cmd command but it doesn't recognise this command. What.... read more

8 answersclick here to view

21/01/2018 12:08
Hi, We are currently going through the process of asking our javadevelopers and external vendors to stick to a versioning conventionfor the various war, jar and ear files that are deployed.
The idea has been suggested that we should have the vendor/developership a release file with version information in the root of thearchive file. However I am thinking that there is a standardversioning specification, as most published libraries include aImplementation-Version attribute in the MANIFEST.MF. Bu.... read more

1 answersclick here to view

20/01/2018 12:08
Hello, i'm trying to learn Java from the book head-first java. I'mcurrently learning about exceptions. My question is this: when I try/catchan exception, the program hangs instead of exiting, what am I doing wrong?here is the code I'm using: import javax.sound.midi.*; public class MusicTest1{ public String play(){ try{ Sequencer sequencer = MidiSystem.getSequencer(); return(We got a Sequencer!); } catch(MidiUnavailableException ex){ return(Bummer!); } } public static void.... read more

6 answersclick here to view

19/01/2018 12:08
Hi all, I am trying to build a serializable javabean.
What can I do with inputstream? Should I always read the whole stream andput that into a byte[] attribute? This doesn't seem a good solution.
What else could I do?Thanks.
m

1 answersclick here to view

17/01/2018 12:08
Just wondering why this won't work properly.....
HTML file: <HTML><applet code = Test.class width = 200 height = 200></applet></HTML> Java applet: import java.awt.*;import java.applet.Applet;import javax.swing.JOptionPane; public class Test extends Applet{ //data fields private String shapeChoice; public void init() { shapeChoice = JOptionPane.showInputDialog( Please enter C, S, or R: ); } public void paint(Graphics g) { if (shapeChoice == c) { g.setCo.... read more

1 answersclick here to view

16/01/2018 12:08
I'll try and keep this brief so in a nutshell: I have large distributed java system running on a Windows 2003 server(4cpu 8Gb memory).
Periodically the following exceptions occurs in the servers: java.net.SocketException: No buffer space available (maximumconnections reached?): recv failed I know for a fact we are not using too many TCPIP sockets or runningtoo many socket servers.
I have googled this error and found very little to help me.
What buffer space is this?What does recv failed.... read more

6 answersclick here to view

14/01/2018 12:08
I have a problem with this program, this is a mortgage calculator,there is no way I can make it work. No gui, this is a simple calculatorfor a java class. Please anybody can help. Thx public class MtgCalculator { public static void main(String[] args) { double monthlyPayment; double interest=3D5.75; double principleValue=3D200000.00; double montInterest; int years=3D30; int months; } //DecimalFormat result=3Dnew DecimalFormat($0.00) // Formulas used i.... read more

1 answersclick here to view

13/01/2018 12:08
Hello,I have a file in which i have points coordonnates, each line contains 3values , for instance: -0.9364249 -0.3042628 -0.7692308E-01 -0.7965705 -0.5787425 -0.7692308E-01 -0.5787425 -0.7965705 -0.7692308E-01 ...
I need to get every value, here is the code that i use, my variable motreturns the wole line instead of each value, i don't understand why, doessomeone knows?Thanks a lot, String chaine, mot; FileInputStream fichier = new FileInputStream(mon_fichi.... read more

7 answersclick here to view

12/01/2018 12:08
I am newbie to Java, am trying to get a program working, and I haveimported the java packages below along with many other imports : import javax.servlet.GenericServlet;....
xsltFile = new File(getServletContext().getRealPath(xslt/ +template)); if(!xsltFile.canRead()) { System.out.println(Error reading XSLT template file '+ xsltFile + '.); return 0; } I get the following error, can anyone tell me what the problem is? com etodutilMyClass.j.... read more

3 answersclick here to view

10/01/2018 12:08
Hi.
How to convert DOC, XLS files into PDF using Java API. Plz advice ifany already worked on this kind of. Thx.
BestRavi.

2 answersclick here to view

09/01/2018 12:08
Hello, Is there a way of accessing compile-time information such as Date and sourceline number as was available in many C and C++ compilers?I want a String that contains the compile time/date of a java class. Thiscan then be used in an Help/About to identify components of the Java app.
Maybe it is obvious but I can't find may references compile-timeinformation.
Any ideas? Nick Austen

1 answersclick here to view

08/01/2018 12:08
I am trying to read information from a mySQL database and display it ona jsp page and it is just not working. I've created the necessaryfolders and placed the necessary files in each. For example, I havethese files in the lib folder: jstl.jarmysql-connector-java-3.1.12-bin.jarstandard.jar Here is my code to try and read information in from the database: ****************************************************************<%@ taglib uri=http://java.sun.com/jsp/jstl/core prefix=c %><%@ t.... read more

1 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 informationWe 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