Two java apps writing to same file in Linux

597 byte By gduquea at 2007-9-27 5:58:42
I'm trying to write to a single log file from a java stand-alone application. The problem is that my servlet application server(JServ) has the "lock" on the file.Two separate servlets already write to the file using a singleton class. However, when I try to make use of the same singleton class ...

can't find a class...?

377 byte By nattyba at 2007-9-27 6:07:49
hey!i'm new to the whole java programming thing.. here's my prob:on XP pro, i have two classes that i have written and when compiled, the GUI class says that it can't find my other class... but the problem is i can compile it on a Unix system at my uni... anyone else had a problem like ...

Java with Windows XP Problem

100 byte By srinivaspuranama at 2007-9-27 6:08:44
Hican any one write how to install java on windows xp home edition, and which version?

Linux Question - Set Java Home

359 byte By scott7379a at 2007-9-27 6:11:48
I am trying to run Forte in Linux Mandrake 8.2. One of the requirements is to SET_JAVA_HOME. Is setting the JAVA_HOME path to /usr/local/j2sdk1.4 equivalent to setting the JAVA_HOME to the jdk? All of the docs I read say you have to set JAVA_HOME to the JDK, but no mention of the SDK. Do I need ...

Linux Environment Variables

303 byte By ntermini3a at 2007-9-27 6:19:44
I have tried several times to set the environment variables. I have tried pointing to /usr/local/java/j2sdk1.4.0/bin and this does not work. This is where the sdk is located, so why would this not work. All the documentation says to point there.Any help is appreciated on how to get this ...

'javac HelloWorldApp.java' not working (XP)

177 byte By javafoofa at 2007-9-27 6:20:52
When I try to compile, I keep getting the same problem 'JAVAC is not recognized.......'. I even updated the Path variable, still nothing.Any help would be great.

Small JVM

168 byte By linuxiceberg.coma at 2007-9-27 6:33:53
I'm looking for a small JVM that will fit on an embedded device. I saw J2ME but did not see anyhere I could download the jvm to run text based apps.Chris

Running Swing programs on Mac system

332 byte By padma_patila at 2007-9-27 6:40:15
Hi,I am using j2sdk1.4 version (jre 1.4) on windows system and developed application using swing.I wanted to test this applicaion on Max 8.1 later.will this work or I need to install different version of j2sdk on windows (which is supprted by mac ) and run the ...

Default Printer PrintService

406 byte By dgaarsoe1a at 2007-9-27 6:49:49
Hi, I'm trying to use the JDK 1.4 javax.print Print Service API with Windows 2000.How can I identify the default printer from the available PrintServices?When I use the Print2DPrinterJob example class from the User Guide Appendix C, it pulls all the available PrintService. On my development ...

Am I stupid or What?

1266 byte By timh615a at 2007-9-27 6:50:13
I've been programming in Java for about a year, and have read two books on programming basics, but I have this nagging problem with javac. Am I missing something stupid?I'm currently using jdk1.4 which came with the "Forte" sdk, but I got rid of the Forte application because it took all day ...

Using green threads

414 byte By audreybmorina at 2007-9-27 6:54:04
Hi,I'm using java sdk 1.2.1_004, it's using native threads by default, can I make it use green threads instead or do I need to download a different version of sdk?We're using the 1.2.1_A (or similar version) at school, with green threads, but I can't find that version anywhere.I've tried ...

new to java .. new to license - use of javac...

854 byte By codedummya at 2007-9-27 6:56:29
Hello,I was wondering about the sdk license from sun's jdk...Can somebody explain me if i'am right or not and when not then why?- The sdk contains the javac compiler.Calling this compiler through my java code in process (via main()-method call)is allowed? is it illegal?Calling this compiler ...

javac running slow

394 byte By mpbhata at 2007-9-27 6:58:12
hi all,I need ur help to solve the problem of slow javac.The javac compiler in m/c is running very slow. It takes about 5 minutes to compile a file. This problem started only recently but before it was working fine. Strangely the java comand executes quickly. Reinstalling JDK did not help.My ...

recent JDK with Redhat 7.1sbe on Dell server?

487 byte By jhpba at 2007-9-27 7:00:34
I have been trying to get 1.4 running on a dual-processor Dell linux server, and also various versions of 1.3, without any success.I have tried playing with LD_ASSUME_KERNEL and various other things noted on the web, such as the stack size ulimit, but I can't make it work. Sometimes it hangs ...

Problems with JTabbedPane!!!

716 byte By acinoma at 2007-9-27 7:04:38
Hi,i am trying to change the size of the tabPlacement. And i would like to put the text that appears in the tabPlacement to the left. But i don磘 know...I have ...JTabbedPane notebook = getpNotebook();notebook.setTabPlacement(JTabbedPane.LEFT);for (int i = 0; i < howmany; i++){ PO_Modulo ...

NoClassDefFoundError Exception Handling

655 byte By semwalmanoj9a at 2007-9-27 7:07:53
I have a problem that when I compile my program then the java compiler compiles it without any problems,but on running the application the Exception shown is that: Exception occured in "main" java.lang.NoClassDefFoundError : <name of java file eg :coverage>Does anybody have any ...

HTML Parser - ANCHOR tag description

509 byte By kglennona at 2007-9-27 7:10:21
I'm currently using:while((el = iterator.next()) != null){ SimpleAttributeSet sas = (SimpleAttributeSet)el.getAttributes().getAttribute(HTML.Tag.A); if(sas != null && sas.getAttribute(HTML.Attribute.HREF) != null){String href = (String)sas.getAttribute(HTML.Attribute.HREF); }to get the ...

I need help with File Object in Java

397 byte By quocthoanga at 2007-9-27 7:17:07
Hello Experts.I am learning Java 2 now. I have trouble with reading a JTextField and save it to a file. I have some errors that I dont know what they are. I would like someone please help me to write a short sample program to see how it work. The code from the book I have dont execute at all. ...

Has anyone been able to get Forte on Linux with j2sdk1.4.0

484 byte By scott7379a at 2007-9-27 7:20:41
I am noticing a trend in the posts from people asking questions about setting up Forte on Linux. (1) Setting the JDK_HOME doesn't seem to work too well; (2) replies tend to reference old URL's or the vague URL's provided by SUN; (3) if not (2) then no reply at all. I was able to get Forte ...

cannot access java.io.serializable file serializable class not found

1049 byte By norjansalikaa at 2007-9-27 7:20:44
Hello,I tried to build and run HelloServlet.java file using wireless tool kit . but there are errors accouredI already tried to compile using jdk1.3 and there seems no problem with the code.the errors are 1. cannot access java.io.serilizable file java\io\seriallizable.class not found2. cannot ...

What do you recommend me to use, JSP or Applet?

400 byte By mecarmonaa at 2007-9-27 7:31:21
I would like to show some information of DB in the screen....I would like to know if somebody could explein me what I should use?.....With a apple i can obtain, every time that I acces to it, update information from DB?ie, a apple is dynamic?I have read somethig about JSP, and I am confusein ...

J2SE 1.4 patches/updates

282 byte By MajorBloodknocka at 2007-9-27 7:31:31
Hi!I've have encountered several bugs in J2SE 1.4 since its release. I've noticed too that some of these bugs have been fixed by Sun.Does anyone know if there is some place to download patches or a new, bug-fixed release of J2SE?Thanks in anticipation!

How can I record the line and file of runtime java app

159 byte By coolguy77cna at 2007-9-27 7:39:35
Hello , I have get a problem which need record the error place of my app, I want to know if java have the same function as c (__LINE__,__FILE__)?

Applet and JDBC

595 byte By sprinsauda at 2007-9-27 8:03:53
Hello,I would like to display in a Web page data from a data base.I've already tried several methods (servlet, JSP) and they work fine, but when I try to do the same with an applet, it seems that I can't even connect to the data base. I get the message : java.security AccessControlException ...

Applet and JDBC

580 byte By sprinsauda at 2007-9-27 8:03:54
Hello,I would like to display in a Web page data from a data base.I've already tried several methods (servlet, JSP) and they work fine, but when I try to do the same with an applet, it seems that I can't even connect to the data base. I get the message : java.security AccessControlException ...

JDK1.3.1_03

208 byte By lua1627a at 2007-9-27 8:07:23
Hi, I want to install JDK1.3.1_03 on to windows machine(WIN 2000). But I have not found any sites where I can download from. Can anyone help in this regard? Thanks in advance,Laura

How to set a Panel to be focused?

145 byte By modelarta at 2007-9-27 8:11:26
I have 4 panel and I want to focus oneof them for different conditions.How to achive this?Any help is appreciated....

Is the sun.* source code available for jdk1.4?

284 byte By qds1a at 2007-9-27 8:17:07
I am specifically looking for sun.nio.ch.FileChannelImpl.java and sun.nio.ch. SocketChannelImpl.java etc...The code is not included in the j2sdk-1_4_0-linux-i386.bin, and I couldn't decompile it using the lastest versions of neither mocha, jasmine or Jad.Thanks.

libjava.so not found

1257 byte By goberlea at 2007-9-27 8:17:41
I have been pushing compiled jar files up to my hosting company's site. From time to time, though, it is useful to compile a class or two on their site, to which I can telnet.They are a Linux site, with JRun app servers. When I try to compile, I get the following message:[goberle goberle]$ ...

Is there a separate regex-jar available for JDK 1.3

523 byte By el-jaya at 2007-9-27 8:21:16
I am "stuck" to work with the JDK 1.3.1_03, but I still would like to use the new regex-features in 1.4.Is there some stand-alone distribution of newly added features in 1.4, like regex or prefs, that I may add as a jar to a 1.3 JRE? Later, when my corporation moves to JRE 1.4, I could simply ...

help - unable to run Jar files

335 byte By moretara at 2007-9-27 8:22:46
Hi all,I have Java2 running on NT service pack 4 which can run Jar files by simply double clicking the file, but the same file with Java2 running on Win98 (chinese) does not work by double clicking or running from command prompt. Does anyone have a solution for this problem?Thanks in ...

j2sdk 1.4 for macOSx

246 byte By bivooa at 2007-9-27 8:30:14
Hi,I'm looking for a 1.4 kit for macOS.Does anyone know if and/or where I can find it?I thought SUN was giving a prelease free for trial. Where can I find it?Thanks a lotIvo Klaassenbivo@chello.nl

Determining where the browser is headed from a Java applet.

569 byte By rturulisa at 2007-9-27 8:32:48
I am trying to figure out how I can get my Java applet to determine where the browser is heading next (ie, the URL) when the user performs some kind of navigation, be it the Back button, the Forward button, typing in a new URL, or clicking on a link.getDocumentBase() returns the URL of the page ...

What kind of algorithm uses CRC class?

178 byte By Qxygenica at 2007-9-27 8:36:00
The CRC class in java.lang.util.zip performs a CRC calculation as a native method. Is there somewhere a documentation what kind of algorithm this calculation routine uses?

Bug? Acces Specifiers not working like expected or am i wrong?

1279 byte By filipjavaa at 2007-9-27 9:10:48
/* Hi, can anybody explain me why the code following compiles an runs just fine? I would think the int a should be unable to be accessed from outside. I get the same effect if ideclare it protected.*/package tester;public class test{public int c;protected int a;private Integer b;public test(){a ...

Is the Common DOM API working at ALL?!?

975 byte By tmcmana at 2007-9-27 9:13:27
I've been interested in it since Java 1.4b3, but I am having such hell trying to figure out how to get it working. The Java Plug-in documentation claims full support for NS 6 and IE 6 but even the miniscule sample program in the docs contains a typo that has not been fixed even though I ...

How do I purchase a license for J2SE/JDK 1.3.0?

456 byte By TaxiMana at 2007-9-27 9:21:22
How do I get this license? I understand it is only a development/evaluation license. Does it come with Forte or another IDE or can I automatically use it if I purchase an IDE, whether through Sun or another company?When I called SUN, they couldn't help me except to tell me to go to ...

Comparing with ==

234 byte By mgsuarezvala at 2007-9-27 9:22:34
Why "b" is false?boolean b = (Double.NaN == Double.NaN);Double.NaN is "static final" and holds a double value.As I'm using the same reference to the value, when comparing with == shouldn't it return true?

The Sun is down and I can't get Forte for Java (?)

832 byte By templer0161a at 2007-9-27 9:25:37
What's up here. I *REQUIRE* the newest version of Forte for Java as an IDE for JDK 1.4. The version that I have currently is over a year old. Everytime I select it from the "Products & APIs", I get a message:Portions of sun.com are temporarily undergoing maintenance.How long is this going ...

Headless Environment Problem

1366 byte By glen_mitchella at 2007-9-27 9:28:20
Hi,I am trying to run a simple program on a server which has no X Server support.From my understanding the new JDK1.4 allows image reading and writing etc without X Server support when the -Djava.awt.headless=true option is used.I run the class HeadlessTest (code outlined below) using the ...

Does it support "Computation Geometry"?

96 byte By cdlee123a at 2007-9-27 9:32:00
I want to know that how to get the area of a polygon,does it has any API to do it?

Importing

363 byte By Bellwa at 2007-9-27 9:35:57
Hello i am just starting with javaand confused about some explanation on some booksi understood that the following should bring anythign under awtimport java.awt.*;if the above does that then why do i have to do the following again.is it not the event under awt.?import java.awt.event.*;thanks ...

Class not found in IE

396 byte By Spywarea at 2007-9-27 9:37:25
Hi everybody.I wrote a real cool chat in java.I coded it a whole night long.And cool it works in Mozilla....But in IE you get a "Class not found".First i thought it's the Server I am using.But, no it's not the server (checked with Apache/Omni).What could that be.Some ideas?Thanks in ...

Can't Run An Applet

388 byte By tolaekundayoa at 2007-9-27 9:37:35
I downloaded j2sdk1.4.0_01 recently and installed it on my system using windows ME operating system. All Application was successful but I can't run any Applet. I always have this error:"No exception while reading : c:\j2sdk1.4.0_01\bin\ShopperApplet.html(The system cannot find the file ...

> java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet

2280 byte By marianaaa at 2007-9-27 9:40:13
When I call the servletrunner, and try to connect to my database this error appeared and I don't know what does it means. Help me .Thank.> java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet> at java.lang.ClassLoader.findBootstrapClass(Native Method)> at ...

runtime.exec() on network

495 byte By ozoneair2002a at 2007-9-27 9:42:51
Hi,I need to launch an .exe file that is present on a remote pc on the network.Can I use runtime.exec() to launch it?Also can anyone send me the piece of code to launch an exe from HTML page so that when I click on the page it should launch this application.Do reply to me ASAPAny pointers ...

how to read from ftp ?

217 byte By gwwindiaa at 2007-9-27 9:48:55
Hi, I want to read a file from ftp. 2 option can be possible ... 1) read direct from ftp 2) copy file from ftp to local disk > then read local file But how ? i want to know

Exception in thread "main" java.lang.NoClassDefFoundError:

646 byte By yongttana at 2007-9-27 9:58:01
I got my notebook recently which running Windows Xp. And i have downloaded the J2SE 1.4.0.1 and has been successfully installed in my system (no error prompted to me).The problem: When compile the .java file, everything seem to be ok (no error message prompted). but however, when it comes to ...

J2SDK 1.4.0 FCS

222 byte By Murray100a at 2007-9-27 9:59:15
Hi All,Could someone please tell me if J2SDK 1.4 is in FCS status yet? If not does anyone have a date for when it will be released?Thanks in advance for any assistance.Best Regards,Murray

Error in docs for 1.4

130 byte By smhaus_neta at 2007-9-27 10:02:11
Where can an error in the documentation for JDK 1.4 be reported.java.util.RandomAccess is missing the 'since' tag.