Can not run Sun Learning CD-ROMS

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

Problem with running programs in Textpad

328 byte By bridgett1148 at 2007-9-30 10:33:09
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 ...

Trying to compile a .java file from another .java file

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

installing a new font

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

differance between equals and ==

116 byte By rajeevx at 2007-9-30 10:34:13
Hello,Can any one tell me whats the differance between equals and ==RegardsRajeev

how do i show javascript in java application?

201 byte By persianshadow at 2007-9-30 10:34:36
hi.......how do i show javascript in java application? ( run javascript in java application ) thank you... ( i love java developer)

How to compile a java program into exe

159 byte By Zhu_Cheng at 2007-9-30 10:35:28
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.

How to disable Day Light Saving Change with GMT-5 TimeZone ?

535 byte By eric_hudon at 2007-9-30 10:35:50
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 ...

how do i open browser in java application

212 byte By persianshadow at 2007-9-30 10:36:08
hi.... please help me!!!!!!!!!!!!!!!!!!!!!!!!!! how do i open browser in java application ? ( for show javascript in java application) thank you.......

how do i play flash file in java application ?

246 byte By persianshadow at 2007-9-30 10:37:15
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 )

Performance problems with Graphics

560 byte By BrunoChilian at 2007-9-30 10:37:31
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 ...

Mac OS 10.3 installaion?

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

Apache Tomcat server crush

1276 byte By vitaliiusa at 2007-9-30 10:38:06
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 ...

Can Java start another App & return to Java after closing?

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

Format double number

288 byte By dams@boulot at 2007-9-30 10:39:41
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

differance between abstract class and interface

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

restart computer with java application ?

129 byte By persianshadow at 2007-9-30 10:41:17
hi how do i restart computer by java application ? thank you persian shadow

JSDK 1.5 MetaData Compile problem

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

CTRL SHIFT "some other key" question

395 byte By discusfreak at 2007-9-30 10:47:12
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 ...

jconsole - J2SE Monitoring and Management Console

189 byte By pressChicago at 2007-9-30 10:49:23
Where is jconsole ?According to the documentation, the jconsole tool is come installed with J2SE 1.5Does anyone know how to get jconsole ?

immediate -- java swing

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

JLayredPane(Immediate)

84 byte By kumar_34 at 2007-9-30 10:50:12
hi all,how could i make each layer transparent in JLayeredPane?

how do i show javascript into java application?

180 byte By persianshadow at 2007-9-30 10:50:17
hi ( please help me!!!!!!!!!!!!!!!!!) how do i run javascript into java application ?( looks like microsoft frontpage ) thank you ?

how do i show vbscript into java application?

194 byte By persianshadow at 2007-9-30 10:50:53
hi how do i show vbscript into java application? ( looks like microsoft frontpage)or what is interpreter of vbscript for java ? thank you?

Java String

524 byte By Rohit.Aggarwal at 2007-9-30 10:52:47
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 ...

Regarding threads

400 byte By Arsalan_Siddiqui at 2007-9-30 10:57:20
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 ...

checked and unchecked exception

81 byte By rajeevx at 2007-9-30 10:57:45
what is the differance between the checked and unchecked ecxeption.

Vertical Headers in JTable

285 byte By discusfreak at 2007-9-30 11:00:33
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.

Problems with SocketChannel.write(ByteBuffer buff).

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

Is there a way to convince javac some SDK methods are deprecated?

969 byte By bhackmann at 2007-9-30 11:01:41
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 ...

java.util.ConcurrentModificationException

609 byte By SebyJoseMathew at 2007-9-30 11:03:43
private int removeEzaSessionAttributes(HttpSession session){Enumeration enu ;enu = session.getAttributeNames();String attibuteName ;int counter= 0 ;while(enu.hasMoreElements()){attibuteName = ...

How to maximize a window

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.

Bug in Locale class or a new feature (1.5beta)

317 byte By Mark_Vleth at 2007-9-30 11:03:57
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 ...

Looking for SNMP V2 Trap sender api

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

how fast will be java.lang.instrument.Instrumentation.getObjectSize()?

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

Calling C code in Java

379 byte By dilip.sundarraj at 2007-9-30 11:06:30
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 ...

Destroying Objects Explicitly

641 byte By PrabhuSai at 2007-9-30 11:08:17
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 = ...

making shortcut on desktop

295 byte By DeRaven78 at 2007-9-30 11:08:27
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 !!!!

Manifest files in jar

216 byte By DeRaven78 at 2007-9-30 11:08:42
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

Thread monitoring for database query

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

Session data

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

How to detect where java is installed

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

How do i get the inserts and deletes on a database

180 byte By iyer_sabarish at 2007-9-30 11:15:07
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

Scrollbar not respond to Mouse event

2374 byte By yuliqin01 at 2007-9-30 11:15:27
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 ...

J2SE SDK Free?

112 byte By amateurappman66 at 2007-9-30 11:15:44
Is the J2SE SDK(all versions) free. I read in a faq a guy complaining that it was a 180 day trial.

Reading CPU information

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

Out of memory error XML

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

Reading text

231 byte By DeRaven78 at 2007-9-30 11:21:58
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

How can this NullPointerException occur?

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

grabbing files and editing them

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