Servlets - maximum lengths ?

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 ...

Problem in printing

1217 byte By ksevindik at 2007-9-26 11:52:55
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) ...

Realm in Servlet Not Working Properly With IIS

652 byte By sjeejula1 at 2007-9-26 11:53:08
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 ...

I need to post data from an applet to CGI. Any suggestion?

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 ...

CHANGES IN VALID SIGNATURE OF main() ?

459 byte By eduardo39 at 2007-9-26 12:04:40
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 ...

I have this error that i cannot fix and i have no idea what causes it

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 ...

Java2 - can't find java VM

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 ...

installing SDK and Forte on Linux

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..... ...

Efficient regex replace function? Help!

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.

Please help: Error using Jakarta-tomcat 4.0 beta

2775 byte By yahyaaccess at 2007-9-26 12:18:29
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: ...

Creating a new Handler (java.util.logging API)

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, ...

jsp:useBean problem?!?!?!

333 byte By kknathjava at 2007-9-26 12:32:19
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 ...

Class Path

114 byte By zekereabe at 2007-9-26 12:36:43
I am using Win 2000, can any body tell me how to set up class path so that, I can test JSP, SErvlets

How does References works

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 ...

Installing Java on Linux

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 ...

Bad Path...

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?

Exception Handling in Object Oriented Design

412 byte By chiragsdoshi at 2007-9-26 12:53:15
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 ...

Tiny InputBox

308 byte By willbermcd at 2007-9-26 12:53:31
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? ...

Small InputBox

338 byte By willbermcd at 2007-9-26 12:54:44
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 ...

cannot resolve symbol

499 byte By kmnalluri at 2007-9-26 12:55:37
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

87 byte By willbermcd at 2007-9-26 12:57:04
inputbox appears but is smallest it can be.only title seen.need mega help

Problems installing forte4j CE3.0 and JDK1.3.1_01

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 ...

Debugging Sun's standard packages

342 byte By HASEGAWAH at 2007-9-26 13:08:23
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 ...

Classpath

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 ...

Downloading JDK with download manager.

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 ...

Delete an object from object array

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 ...

Where can I J2SDK for solaris 8 on x86?

134 byte By schnell18 at 2007-9-26 13:33:54
Hi, Would you kindly tell me where I can find J2SDK for solaris 8 on x86?Thx,Regards,Justine

Does both the JDK and the JRE have to be installed?

585 byte By ThWestfeld at 2007-9-26 13:34:47
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 ...

Is there a bug in MouseEvent.isPopupTrigger() in JDK 1.4 ?

282 byte By zhaoyoubing at 2007-9-26 13:37:35
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!!

Problems with 1.4beta3 regular expressions

357 byte By samjoseph at 2007-9-26 13:39:36
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 ...

regex: searches for first letter in word return all letters

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 ...

Problem in getting my JAVA 2 SDK standard edition v 1.3.3_01 Working

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 ...

SocketChannel limitations in JDK 1.4 (java.nio)

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 ...

How to get data type from refrence

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.

Problem after installation of J2EE on linux

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 ...

error on java command - not classpath problem

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 ...

Out of memory, exiting

809 byte By markuskramer at 2007-9-26 14:03:32
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 ...

Opening Output Stream to a file on the server from Applet

1362 byte By shawn_cross at 2007-9-26 14:09:57
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 ...

Java Serial Port

1608 byte By mpangrekar at 2007-9-26 14:11:30
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 ...

JDK 1.4b3 bug window listeners for system.exit()?

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 ...

JDK1.4b3 & Tomcat

311 byte By BluSeiger at 2007-9-26 14:18:57
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. ...

problem mixing jdk1.3.1 and jre1.1.7 on W98

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 ...

Path and Classpath

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

UPLOADING TO WEB SPACE

129 byte By deliasmith at 2007-9-26 14:44:34
HOW DO YOU UPLOAD TO THE WEB SPACE .....DO YOU USE AN APPLICATION SERVER OR FTP IT ........HOW DOES IT WORK.......?

JDK for 486 with 12Mb of RAM

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 ...

Can I create MS-Word files or PDF files using java

525 byte By chiragsdoshi at 2007-9-26 14:50:33
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 ...

Swing in J++ ?

335 byte By elimessaih at 2007-9-26 14:51:50
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 ...

Internet Explorer Not Seeing Mail Classes

673 byte By shawn_cross at 2007-9-26 15:20:39
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 ...

Standalone? JIT? Santa Claus?

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 ...

How to create the executable jar files?

159 byte By Ruby_sure at 2007-9-26 15:32:20
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?