463 byte By
ogaard at 2007-9-30 10:32:16
Hello,I've been running two Sun Learning courses (CBT's), CDJ-110 and CDJ-275, without any problems - until I updated my SDK to 1.4.2_04. Now I'm receiving the following:Error Reading CSF:java.security.AccessControlException: access denied (java.io.FilePermission C:\Program Files\Sun\Sun ...
Could someone tell me why I am not able to run my programs via Textpad. I have went through my whole class period making sure my programs run using the long method. Textpad allows you to run it simply by using the CTRL+F2 option. I can compile them fine using CTRL+F1, just not run them. What ...
635 byte By
Akhila_B at 2007-9-30 10:33:21
Hello,I'm trying to compile a .java file from another .java file using Runtime.exec...String c[]=new String[3];c[0]="cmd.exe"; c[1]="/c" ; c[2]="javac Hello.java";Process p=Runtime.exec(c);If anyone can help me in atleast getting the command prompt when Runtime.exec("cmd.exe") is ...
122 byte By
pelegk2 at 2007-9-30 10:33:49
i need to add a new font to the java enviormenthow do i do that?thnaks in advancepeleg
116 byte By
rajeevx at 2007-9-30 10:34:13
Hello,Can any one tell me whats the differance between equals and ==RegardsRajeev
hi.......how do i show javascript in java application? ( run javascript in java application ) thank you... ( i love java developer)
i write a java program in windows xp,i want to complie this program into a .exe file,so he can running at other computer,even it not install jvm.
Hi,I want to use a Calendar object for date manipulation, but I wantto disabled DST, because it adds and removes 1 hour dependingon the calculation.I took a look at severals books but without success. I found a solution at http://mindprod.com/jgloss/gotchas.html#DATE , but it uses UTC ...
hi.... please help me!!!!!!!!!!!!!!!!!!!!!!!!!! how do i open browser in java application ? ( for show javascript in java application) thank you.......
hi how do i play flash file in java application ? or how do i open browser into java application ( show webpage into java application) thank you ( i love developer of java )
Hi there! I have written a little game with java2 using Image-class for offscreen buffering. The application is running in a Frame. Problem: As soon as I put in any graphics, like drawImage(...), in Windows XP, performance slowed down a lot. I have about 1fps!. Then I put the application in ...
739 byte By
macunkie at 2007-9-30 10:38:00
I'm in the process of installing a CMS called Magnolia. Installation instructions indicate needing the following:Running The Tomcat 4.0 Servlet/JSP Container============================================This subproject contains Tomcat 4.0, a server that implements the Servlet 2.3and JSP 1.2 ...
i have a JSP which is refreshed by browser every 10 sec. sometimes if i leave it to run for 5 hours or morei find this error and server is shut down. HTTP Status 500 - --type Exception reportmessage description The server encountered an internal error () that prevented it from fulfilling this ...
220 byte By
Will_3 at 2007-9-30 10:38:15
Can I launch another application from Java...And, when that application ends, return to my java application?If so, can someone give me a hint on how to do this.Thanks,Will
Hello,I'd like to find an easy way to format my double (and add it in a string), as it is possible in C.For example :float my_float = 3.141592653589printf("%.2f\n", my_float) ; prints 3.14.Is it possible ?Thanks for any tips
141 byte By
rajeevx at 2007-9-30 10:40:20
Whats the main differance between abstract class and Interface and where I can use abstract class and where I can use Interface
hi how do i restart computer by java application ? thank you persian shadow
595 byte By
rsvln at 2007-9-30 10:42:27
Folks I am trying to compile the following code using JDK1.5 compiler, I get the following compiler error...<-- Code ->public class Ping {public @remote void ping() {}} <-- Code ends-> <-- Error ->C:\jdk1.5.0\test>C:\jdk1.5.0\bin\javac -source 1.5 Ping.javaPing.java:6: ...
I am trying to do something similar to the CTRL-SHIFT-F1 keyboard shortcut to show the Swing/AWT hierachy, however I want to display this in a graphical form (I know how to do that part), but I am having problems implementing the keyboard shortcut part. Cound someone point me in the right ...
Where is jconsole ?According to the documentation, the jconsole tool is come installed with J2SE 1.5Does anyone know how to get jconsole ?
302 byte By
kumar_34 at 2007-9-30 10:49:36
Hi All,Has anybody done anything with transparency and Swing components? I have a component (JPanel) with a figure that I'm using as a popup that appears in the JLayeredPane.I want to make back groundcolor transparent and foreground color of my own choice.bye ...
84 byte By
kumar_34 at 2007-9-30 10:50:12
hi all,how could i make each layer transparent in JLayeredPane?
hi ( please help me!!!!!!!!!!!!!!!!!) how do i run javascript into java application ?( looks like microsoft frontpage ) thank you ?
hi how do i show vbscript into java application? ( looks like microsoft frontpage)or what is interpreter of vbscript for java ? thank you?
The question is not in general but very specific. Only for this case..My query is:class ABC{ public static void main(String[] args[]) {// 1,1 String abc = "Rohit";// 1.2 String xyz = new String ("Rohit"); }}According to my understanding, the both are equally efficient. Please tell me answer ...
I have made a class named SwingApplication. In that class , I made and call object of another class 'Middlewear'. how I can put object of Middlewear on different thread.? Some code to describe the question is given belowclass SwingApplication {Middlewear mw = new Middlewear(); //i want to put ...
81 byte By
rajeevx at 2007-9-30 10:57:45
what is the differance between the checked and unchecked ecxeption.
Anybody ever done something like that ?I need to display a very large grid, where the headers have a fairly long text, but each cell only has a single character in it, so I was thinking of making the headers vertical.Any help, pointers would be appriciated.
3482 byte By
hemendra at 2007-9-30 11:01:40
I am using the following version of JDK on Red Hat Linuxjava version "1.4.2_01"Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_01-b06)Java HotSpot(TM) Client VM (build 1.4.2_01-b06, mixed mode)I am using SocketChannel's write method mentioned above to write data to the ...
I would like to enforce some coding conventions my employer has defined which prohibit certain actions, such as the use of the following methods:static CalendargetInstance() static CalendargetInstance(Locale aLocale) static CalendargetInstance(TimeZone zone) (only the method using timezone and ...
private int removeEzaSessionAttributes(HttpSession session){Enumeration enu ;enu = session.getAttributeNames();String attibuteName ;int counter= 0 ;while(enu.hasMoreElements()){attibuteName = ...
102 byte By
ColorZhu at 2007-9-30 11:03:44
Hi all:i want show a maximize window when program started.How can i do it.
I was looking at the source code of the java language version 1.5 and noticed that strings in the "private String convertOldISOCodes(String language) " method are compared with the equality operator. So this should compare just objects, not String.class contents. Or is this a new feature of ...
190 byte By
bdighe at 2007-9-30 11:04:01
Hi,I am looking for free java SNMP V2 trap implementation. It will be very helpful if you people couldgive me some pointers for this.Regards- Bharat
518 byte By
desd1012 at 2007-9-30 11:04:31
Trying to make a decent sizeof() implementation, I end up, fully optimized, with a 0.3 ms for a 12k object tree with ~200 disctinct object, 16 class types, on a p3, 800mhz.This is awfully long.We want to limit our data queues by real size, not object count.I was wondering how fast can we expect ...
Hi,I've implemented a program that performs some image processing algorithms using C. Now, I want to integrate this into another mammoth project that is implemented in Java. I do not want to implement all of my C functions in JAVA, so what is the best way to handle this problem? I'd ...
When an Object will get removed physically from memory ?(a) Only When an application is closed(b) or eventhough the application is closed, the object will get removed only after a period of time by Garbage CollectorEx: Using Connection ObjectConnection con = ...
hello , amm i am new to java i want to make a program run from a shortcut on the desktop i made the shortcut for Javac through just giving it the path of the file for that for the class file i mean for the java.exe what do i do ? please help !!!!
how do i edit them to take in the entry class names.....using the m option i have tried to include the text file but does;nt work can someone post me an example i would be very careful zee
793 byte By
rudyard at 2007-9-30 11:10:19
Hi,I need to be able to store a database query in a thread. This means that the entire query from executing to return should take place in this thread (as well as connection etc). I would then like to know when it have finished its work so i can carry on some more porcessing.I tried doing this ...
540 byte By
hamsak at 2007-9-30 11:10:28
Am facing a problem when using JDK 1.3.When concurrent users access my application, one user is getting another user's session data.I have a ControllerServlet which has a protected Properties variable (QString) which stores the data. This servlet is inherited by the ActionServlet and access ...
159 byte By
Brannos at 2007-9-30 11:10:51
Hi guysI need to write a java program that detects where J2SE or J2EE is installed?Any suggestions... thank you
Hi I just wanna get the inserts,updates and deletes on a database in a specific period of time. How do i get it using Java. Please help me in thisThanks
Help please. I have a simple applet containing only one scrollbar. When the scrollbar's tab position changed (by user clicking on or drag), the applet need to getValue() and call a javascript function on the html page. Here are the codes:for Applet--import java.awt.*; import java.lang.*;import ...
Is the J2SE SDK(all versions) free. I read in a faq a guy complaining that it was a 180 day trial.
268 byte By
luckybar at 2007-9-30 11:18:39
Hi all, i have to question, i want to read the system CPU information by java. how can i do it. thanx, i downladed a program and i save it on my website, http://www.itthost.com/chao/cpuid.zip, i want code a same program like it by java. thanx for helping
413 byte By
JinoyPL at 2007-9-30 11:20:46
sir / madam,I am using jdom parser for parsing my XML file .I can get correct results when the xml files are small.But when my xml file grows to larger in size it shows ' java.lang.OutOfMemoryError' .How can I solve this problem.If U have some sample code with no such error will be very ...
Hey, i want to read a file which i can do but i want to read the file and i want to transfer each line of file red into a separate string. how do i go about doing that. many thanks zeeshan
1927 byte By
enguang at 2007-9-30 11:24:18
Get a very strange null pointer exception as below:java.lang.NullPointerExceptionat java.util.SubList.<init>(AbstractList.java:699)at java.util.RandomAccessSubList.<init>(AbstractList.java:856)at java.util.AbstractList.subList(AbstractList.java:565)at ...
503 byte By
adh2k1 at 2007-9-30 11:24:32
I want to automatically grab files off a server and add a couple of lines to them, resave them to a local directory and thats it. Is there any way I can easily go about this? I can go into deeper detail if needed. I was planning on just streaming all the files where it manually adds the few ...