732 byte By
MAQ at 2007-9-26 11:51:40
Hey all,I am having problems with a servlet. It is an online application and needs to accept a lot of data through a web browser to then be stored in a back end MYSQL database.The system works and dat is stored etc, but I am having varying levels of success with just how much data can be ...
Hello,I would like to ask a question. I have the following piece of code;//...java.awt.JobAttributes jAttr = new java.awt.JobAttribute ();jAttr.setDialog(java.awt.JobAttributes.DialogType.NONE);try {jAttr.setPrinter("printer name NOT defined on OS");} catch (Exception e) ...
Hi,I have simple servlet when invoked challenges the user before allowing access. I have custom realm created in the same servlet itself.This works fine when I invoke using Apache\Tomcat combination.But when I invoke it using IIS web server\Tomcat, it challenges me, but the realm is set to ...
391 byte By
jatro at 2007-9-26 11:54:22
I create the easy WYSIWYG editor as applet. I have successfully programmed the GUI. But now I need to save the user input to a database. The problem is I can't connect to database directly from applet. Is any way how to post data to a cgi script?I need to pass data to the applet also. Is any ...
Hello!I have the version 1.2.2 of java. Have done some tests with the method main () and has found that already compiles and runs with the modifiers: private, protected, final, or synchronized. Can also be default (friendly). Someone it is able to say if has changed the concept of valid ...
1287 byte By
Nyxx at 2007-9-26 12:06:26
I downloaded and installed a version of the JDK (version 1.3 actually) and something in the software had a bug that would not recognize java command line class files. i would try to run a perfectly good java class that works on other computers and i would get this error: Exception in thread ...
698 byte By
pmdelij at 2007-9-26 12:13:34
Can someone please help me? I recently downloaded Java2 (version 1.2.2). I must use some java code for another Oracle program. I'm continuously receiving the following errors: Unable to initialize threads: nCan't create Java VMMy Path and Classpath appear correct, but it does not contain a ...
463 byte By
tpcampb at 2007-9-26 12:15:31
Help me please.....I've installed both the SDK and Forte on my linux machine. When i try to run forte 'runide', I get the message "cannot find JDK. please set the JDK_HOME enviroment variable"I then set the JDK_HOME, JAVA_HOME, and add the sdk to my PATHAfterwards, when I try to run it..... ...
284 byte By
etsuprun at 2007-9-26 12:15:49
Here's what I'm trying to do:Scan through a string, and replace any occurences of http://...... (until the next space) with an HTML link. Does anyone know what would be the most efficient regex replace function to do this?Thank you very much in advance.
Hi all,Could you please help me with a following error?I am trying to start Jakarta-tomcat 4.0:C:\ Jakarta-tomcat 4.0\bin\startup.bat and I receive the error:Catalina.start: LifecycleException: null.open: java.net.BindException: Address already in use: JVM_BindLifecycleException: null.open: ...
538 byte By
a.goncal at 2007-9-26 12:22:51
Hi, I'm developping a new Handler (extending the java.util.logging.StreamHandler) and I need to get some initialisation properties from the LogManager. I was taking example from the existing Handlers (SocketHandler, FileHandler...) and wanted to use the LogManager.getLevelProperty, ...
Hello, I have installed J2EE Srever and have some JSPs in the pub_html folder. I need to use some beans(using usebean). Where can I put them the Java Benas? For example, I have the package com.wrox.tutorials, then where should the classpath point to?I would appreciate if some one can ...
I am using Win 2000, can any body tell me how to set up class path so that, I can test JSP, SErvlets
801 byte By
atorres2 at 2007-9-26 12:37:06
Hi!I'm using SoftReference with a Vector, and I'd like to know if, when Garbage Collector chooses to free memory, it could dispose the elements of the vector without disposing the vector itself.I'm not sure if this happens, anybody could help me in this topic ? By the reference rules, if A ...
367 byte By
kkttt at 2007-9-26 12:41:05
Hi, I've installed the jdk1.3 rpm on Mandrake 8.1.Just like many people, I get the missing libhpi.so error message when running java-versionAs stated by someone in this forum, I tried editing the ld.so.conf file and now I get the error message : could not find Java 2 runtime environmentAnybody ...
274 byte By
Hentryx at 2007-9-26 12:49:05
an a JApplet.my JApplet Runs Without problems, but in the win98 Internet Explorer's java console appears an error. it says "IOError BAD PATH: C:\windows\java\lib\swing.properties". during de first line at the init method, what's happend?
I am developing a huge web based project using Object Oriented design and java,srvlets ,jsp etc ,I am using 3-tier archtecture.I dont understand,how i should handle exceptions in my project.ie.If there is some exception in the base modules how should it be handled.What kind of excpetion ...
When i complieand run my java programs the inputbox appears but is very small.so small in fact that all that can be seen is the title bar and the 'X' button on the right hand side of the title bar.how do i rsize the input box so that all of it can be seen. or is this an installation probelm? ...
When run any of my java programs the inputbox appears but is very small.so small in fact that all that can be seen is the title bar and the 'X' button on the right hand side of the title bar.how do i rsize the input box so that all of it can be seen. or is this an installation probelm? I am ...
Hi,When I tried to co,pile a program I'm getting the following error with 1.3.UtilTest.java:5: cannot resolve symbolsymbol : method parseInt (java.lang.String)location: class Integerint num = Integer.parseInt(args[0]); ^d:\java\Integer.java:7: cannot resolve symbolsymbol : constructor Integer ...
inputbox appears but is smallest it can be.only title seen.need mega help
585 byte By
cguers at 2007-9-26 13:04:14
Hi!I had JDK 1.3 installed, so I uninstalled it and installed JDK 1.3.1_01. No issues with it... I even rebooted my machine (Win2k Pro, by the way). I then try to install Forte 4 Java CE 3.0 and it complains that I have JDK 1.3 installed and that it is not fully tested and that 1.3.1 should be ...
Is there any way to "debug", that is, to trace the code by e.g. putting System.out.println(), Sun's standard packages(java.*, javax.*, etc.)? I want to tweak the default behavior of some of these classes, but I'm not quite sure what to do, so I want to know what's going on inside. Do IDEs ...
486 byte By
rihu at 2007-9-26 13:17:42
Hi everybody, hope you can help me with this problem.Have placed an jar file containing a package I have developed in the c:\jdk1.3.0\jre\lib\ext folder.When using Windows NT the application that uses the package finds it and I do not have to set a seperate classpath to indicate where to find ...
494 byte By
bouynov at 2007-9-26 13:28:16
I was trying to download JDK 1.3.1 from SUN's site, but I can't force my download manager to capture the file (I use FlashGet). I can't download it with the browser since the browser download cannot be paused/resumed, and with a dial-up connection it cannot be downloaded at once. Does ...
491 byte By
MmwuW at 2007-9-26 13:30:28
I need an object array and later want to delete an object from the object array. For example, I declare an object array usingObject[ ] anObjectList = Object[3];anObjectList[0] = a;anObjectList[1] = b;anObjectList[2] = c;if later I want delete second object anObjectList[1]. How can I doit? I ...
Hi, Would you kindly tell me where I can find J2SDK for solaris 8 on x86?Thx,Regards,Justine
Hi!I'm using the JDK 1.3.1 for Windows 2000 and I installed Netscape 6.1. Netscape installed the JRE 1.3.1.Now I deinstalled the JRE because I thought, that the JRE is included in the JDK (and to save disk space as well). But now the Browser hasn't got the Java Plugin, so I can't run ...
I used it to test if it's a legal mouse click to show popup menus, but I get no reponse. When I deleted the statement I can see the popup menu, though a left-click will cause it to show.The OS is win2000, Platform JDK 1.4.0Is there a bug?Thanks!!
Hi All,I'm having problems getting subsequences out of the new regexps in 1.4beta3.I guess this may be a bug, but while I can match patterns, when I try to grab the subsequences (as defined by brackets in the pattern itself) all I get is the original pattern.Can anyone help?Thanks in ...
833 byte By
tranzor at 2007-9-26 13:41:30
I want to init-cap the words in a sentence, and I use the pattern "\\b[a-z]" to search for the first letter of each word. However, it actually matches all the letters, so that the entire sentence is capitalized. If I reverse the pattern to look for the last letter of each word, "[a-z]\\b", then ...
346 byte By
xesojay at 2007-9-26 13:44:03
Dear Friends, I downloaded java 2 SDK standard edition v 1.3.1_01 but I could not get it working and I have try to get it working but things does not work out, may be because am new to java programming, please I need your help. thanks for your help in advance,Adeyemi AdesojiLagos,Nigeria ...
1049 byte By
FritzS at 2007-9-26 13:51:52
The new I/O API included in JDK 1.4 looks fine. But it looks like it's not implemented using completion ports (the fastest possibility) with the windows platform. So you have to deal with "normal" limitations like the maximum of 63 sockets for one single select operation.I registered more than ...
228 byte By
MmwuW at 2007-9-26 13:55:50
I need to get data type from reference ans use it casting a data to this data type. I have tryed getClass(). it suppose to het the run time class. I am not clear what runtime class means? Any help?Thank you.
786 byte By
QuadID at 2007-9-26 13:56:09
Hello,For some reason, whenever I run a binary in $JAVA_HOME/bin, my memory and swap space is filled up with some hundreds of processes (all are /bin/sh). The system becomes laggy and I either have two options: SIGINT, or wait until the binary dies by itself giving me this ...
633 byte By
iane6 at 2007-9-26 13:57:32
Hi All,I'm having a problem running the java command from the command line. I am getting the error:java.lang.noClassDefFoundError: <classname>javac works fine. I am 100% certain my classpath and path statements are correct and that the code is fine also.I suspect the problem may perhaps ...
hi, I've problems running the JDK 1.3.1 on my webserver (SuSE Linux 6.4). But I'm using it on another computer(SuSE Linux 7.1) without any problems. When I execute a simple HelloWorld program, I get this error:java -Xms20m HelloWorldApp**Out of memory, exiting**The webserver has about ...
Hi,I am trying to write a little applet which parses a file found on the server , lets the user select some Strings then write the selected Strings to a different file on the server. I use the following code:String fileName = new String("LineUp");URL docBase = null;URLConnection conn = null;try ...
Hello,I am sending commands to a robot controller, such as Home\r, Move\r from a Java program using Java COMM API, through a serial port, they are working fine.Generally, I use a robot s/w (DOS based) to send commands to the controller. When we press "~" (SHIFT_~ actually) from robot s/w then ...
388 byte By
lovalvob at 2007-9-26 14:13:06
I just installed 1.4b3 and was running some of the jfc demos. Unfortunately, I find that the JVM doesn't always exit when the demo windows are closed.A quick review of the demo source code show that the system.exit(0) is registered for windowClosing events. Perhaps the swing UI thread isn't ...
Ok, so I downloaded Tomcat and it told me to install JDK first (Oops!).So I download JDK1.4b3 and install it.Try to run Tomcat install and again it tells me it can't find a JDK.... Does JDK1.4b3 register itself differently on a system or something?Cheers for any help. ...
557 byte By
ploufboy at 2007-9-26 14:25:12
hello,that's what my problem is :first i installed jdk1.3.1on a W98 PC, my API worked fine. But, after installing products such as Oracle, an old version of jre (1.1.7) was automatically installed. Since this installation, there are 2 versions on the same computer, and java becomes really ...
189 byte By
dmeband at 2007-9-26 14:37:11
Hey, I'm not sure if this is the right place for this question, but could someone explain to me what the difference between the Path and Classpath variables are?Thanks
HOW DO YOU UPLOAD TO THE WEB SPACE .....DO YOU USE AN APPLICATION SERVER OR FTP IT ........HOW DOES IT WORK.......?
480 byte By
murphyed at 2007-9-26 14:49:37
Im wondering whats the best version of jdk for a 486 Computer with 12mb running Windows 95. I want to be able to compile simple java programs and run them. Im only learning java so I wont need many of the features in modern java but still want to be writing code that complys with newer versions ...
We are developnig a web based application for banks and in this at some point we need to provide reports to the Banks for downloading and printing . Now I do not want to make simple .txt files ,I wan to use some sophsticated file format which look nice.So is it possible for the server to create ...
HeyI try to compile some Swing packeges in J++ but it`s not work out . why ?I try to compile this packeges :import javax.swing.JTabbedPane;import javax.swing.ImageIcon;import javax.swing.JLabel;import javax.swing.JPanel;import javax.swing.JFrame;Thank YouEli ...
Hi,I posted a message previsouly which no one responded too which said that I was getting NoClassDef for exceptions I was catching. The exceptions were those in the JavaMail package. Once I changed these to just plain old Exceptions I no longer got the same problem, but I did get Internet ...
1287 byte By
braal at 2007-9-26 15:31:14
So did these JIT's bite the dust, or what? :) there's nothing that I'm aware of that's been updated within even a year that has to do with making a simple "click-once" java application for a 'java-ignorant' user.I'm at my wit's end trying to make a program with the type of user in mind ...
please tell me the steps to create the executable jar files so the they can act as the software involving the .class, .gif and .properties files?