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 ...
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 ...
Hican any one write how to install java on windows xp home edition, and which version?
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 ...
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 ...
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.
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
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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. ...
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 ...
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 ...
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 ...
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!
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__)?
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 ...
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 ...
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
I have 4 panel and I want to focus oneof them for different conditions.How to achive this?Any help is appreciated....
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.
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]$ ...
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 ...
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 ...
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
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 ...
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?
/* 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 ...
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 ...
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 ...
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?
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 ...
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 ...
I want to know that how to get the area of a polygon,does it has any API to do it?
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 ...
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 ...
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 ...
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 ...
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 ...
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
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 ...
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
Where can an error in the documentation for JDK 1.4 be reported.java.util.RandomAccess is missing the 'since' tag.