777 byte By
lgferst at 2007-9-30 21:02:11
hi all,I am trying to have access a DLL written in I linguegem C, but I am not obtaining...I also have the archive h and nao I have the source of the DLL...The call of the function in the header file is Int16 PPEXPORT PP_iOpen (void);my class is public class Test {private static native void ...
6119 byte By
ezeht at 2007-9-30 21:03:13
Ya You know- I do not know where or how i got here. I was having trouble with runtime, needed help - hit this site and bam nothing but confussion. a link for runtime took me to this site--guess home page- bam 50,000,0000 links abreviations im guessing java programs-- but nothing that says ...
2548 byte By
ecco16 at 2007-9-30 21:05:20
hi,I have a question about infrared connection from ipaq h4150 to PC.I use and actisys IR220L+ (adapter to convert serial port into IR) for receiving the IR.I tried to write from IPAQ to PC via infrared by using the code ...
299 byte By
lgferst at 2007-9-30 21:06:28
hiI am having problems in the creation of the archive header .h, when I execute the commandC:\javah -jni Teste.classIt appears the messageError: class Teste.class could not be foundAlqu齧 already passed therefore?Positive VibrationsLucas Ferst
I'd like to use the deploytool to deploy some example EJB's, but I can't find it anywhere in my JDK. Does it not come bundled with it anymore? Where can I download it?Thanks,PJ
when i was a student in my uni. i used to use Console. for exampleConsole.setTitle("My name");Console.fillWithCharacter(' ', 80 * 25, 0, 0);Console.setTextAttribute(11);this command are used for seting the attributes of the window at run time and now i left uni and i am praticing on my own ...
FIND works FIND NEXT doesnthi there, i wrote this code but it didnt work. i feel it includes a bug or somethingthe Find was working untill i added the FindNext button, after this the both didnt work properly, thery just get the first word then STOP, why ? this is my question !!so what is it ...
648 byte By
santo at 2007-9-30 21:10:06
Hi,I am trying to install the 'Windows Online Installation, Multi-language (jdk-1_5_0-windows-i586-iftw.exe, 221.25 KB) ' on my newly purchased Dell laptop.My laptop has the windows XP professional. It gives me a message that the installation will take several minitues. I waited for almost ...
Hi,I am designing an embedded system for a customer in Israel. I am using the MPC8247. He wants me to incorporate the Java 1.4 SDK and I don't know of any Java 1.4 compliant JVM's available for the MPC8247. Can you help me to find a vendor?Best Regards,Charles L. ...
CAN SOME ONE PLEASE GIVE THE RIGHT ANSWER.( i did post this mesg. 2days B4 as well but i did not get the answer . every 1 who answered said that it is answered b4 but i could not get the right answer so for. did searched for on in forum but was of no use. so please answer .)when i was a student ...
957 byte By
Aswin at 2007-9-30 21:13:59
Hi!! im desperate to know this. I made a java program that runs javac and java using Runtime class. I run the javac and java commands as follows:Runtime.getRuntime().exec("javac c:\\java\\eg\\myfile.java");Runtime.getRuntime().exec("java -classpath c:\\java\\eg\\ myfile");Suppose the java file ...
564 byte By
henry_sh at 2007-9-30 21:15:10
I am sorry to ask this stupid question and in this wrong place. I used this forum for long time and think it's very useful. But today, I try to search some infomation. But the result of search is always "none". I tried to key in key words "mysql date", it return nothing, Then I tried "jdbc" , ...
248 byte By
provalia at 2007-9-30 21:17:01
please help!!!I have instaled the new j2se development kit 5.0 and jre5.0, but my browser cannot open any applet and Sun Java console. The error is - " The Java Runtime Environment cannot be loaded from <\bin\server\jvm.dll>?!!!
1310 byte By
JohnDude at 2007-9-30 21:18:04
When I try to run my Java app (JPositionCheck) from the command line, I get these errors:Exception in thread "main" java.lang.NoClassDefFoundError: JPositionCheck (wrong name: JPositionCheck/JPositionCheck)at java.lang.ClassLoader.defineClass0(Native Method)at ...
94 byte By
Aswin at 2007-9-30 21:18:05
Can anyone suggest a good tutorial for JTextPane other than the one found in this site?
1820 byte By
RDhamija at 2007-9-30 21:18:15
Dear All,We have developed our application using Jdk 1.4 + Jre 1.4 using JBuilder Foundation V 10.0. The application runs fine using jdk,jre 1.4 version. The application is NOT an applet based, uses various components like JTable, JPanel, and gridbaglayout.I have two major issues for the same ...
Hi All:My question is same with my subject: Does code in finally block is executed immediately? especially in high volume environment.One of sun's engineer told me that the answer is no. Is this true? I don't belive this. I found lots of framework try to release resources in their finally ...
Hi AllI am stuck up while using String.split method in Webshere,pls any body of u can give altrenative logic for string.split,i need to use string object as delimeter (not a single char)
2564 byte By
marc79 at 2007-9-30 21:20:08
Hi all,I'm trying to print a simple text document with the below code but it keeps spitting out an illegal argument exception. That's after I've tweaked the DocFlavor to every other available type till I got one that shows the print dialog. Any help will be greatly appreciated as this is my ...
Hi everybody.I have a huge problem with reading back stored objects after the class definition has changed (e.g. a new property, or a deleted property).I have an application in beta testing and some updates cause terrible problems to users.I would like to find some information about the way ...
HelloIs this dangerous to work at the same time with a Hashtable and an Enumeration on it ?For example, I'm using a Hashtable to store some objets... these objets are very often put/remove/get.Periodicaly, a "cleaner" is waking up and using an enumeration on this table to clean (remove) ...
PLEASE lol Iv tried to get this to work for about 6 months now. Iv finaly broken down to post here PLEASE help. Basicaly the KeyListener is not working at all. It should print out "Key Was" whenever there is ANY key action but it doesnt.Below is the code to my java program. It can be used as is ...
792 byte By
neeloy at 2007-9-30 21:22:04
i need help for a class project i am working on. the program is supposed to estimate the amount of taxes that someone needs to pay. i used a formatted text field to give the user a place to enter in their yearly salary. I retrieve the text from the textfield and i save it into a String. then i ...
889 byte By
notrump at 2007-9-30 21:22:09
"A Vulnerability in JRE May Allow an Untrusted Applet to Escalate Privileges" ( http://sunsolve.sun.com/search/document.do?assetkey=1-26-57221-1&searchclause=57221). "A vulnerability in the Java Runtime Environment (JRE) classloader can allow an untrusted applet to escalate privileges ...
i have got this error when i complied my program.i don't know what to dothe System is out of resourespublic class OutOfMemoryError.Consult the following stack trace for details.java.lang.outOfMemoryErrorwhen i looked for help it says...!extends VirtualMachineError Thrown when the Java Virtual ...
Hello, everybody!To set the size of the main window of my application I use the following code:Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();setSize(screenSize.width, screenSize.height);That's working very well. But is there a way that I can subtract from the heightof the ...
Hello, everybody!I have a JMenu without items. I just want to click on it and to execute some code.JMenu menuSobre = new JMenu("Sobre");menuSobre.setMnemonic('S');menuSobre.addActionListener(new ActionListener() {public void actionPerformed(ActionEvent event) ...
4566 byte By
kabilesh at 2007-9-30 21:27:02
Hello folks,I am trying to get a simple windows console application to lauch the jvmbut the call to JNI_CreateJavaVM keeps failing (returns -1). I have triedjust about everything (with the paths, client dll, server dll,paths etc.) but nothing seems to work. I have checked the groups did notfind ...
Pls Tell Me How Can I install the JTAPI package?I download The files given In Sun site but Not Define which File I Place In the j2se's bin or lib or jre.pls SomeOne hlp Me.Why Don't U r response In the Burning Time?
hi is there any way to use the windows api i java? it can be done in visual basic. i want to be able to control other windows in other programs or view other text boxes in other programs from my java program. if anyone knows how this is done or a website that shows how it is done can you plz ...
hi, i have a doubt abt interfaces...when a class is implementing an interface we say public class someclass implements someinterface but where as if an interface is implementing another interface we say public interface interface1 extends interface2 rather, public interface interface1 ...
I wanna add some files which named by Chinese charactors or Japanese charactor. But in the zip file, the files name will be ? sign. Does ZipEntry support chinese charactor set?Thanks.
110 byte By
lt.led at 2007-9-30 21:30:17
Hello allCould anyone please show me how to get a BufferedImage from an ImageIcon?Thanks!
Okay, here's the deal. I recently got a new computer. I installed the JDK 1.5.0, and then transfered my source code and class files onto the new computer. My old computer has Windows 98 SE, and my new computer (a Toshiba Satellite) has Windows XP Home, Service Pack 2. javac works fine, but for ...
Hi,I am looking for a figure that illustartes all the class/interface hiearchy of J2ME platform. Google did not help me. Can anybody provide me a URL?Thanks
432 byte By
fazle at 2007-9-30 21:32:42
I have the objective of creating an abstract super class of a set of runtime classes and I want to add a static method to the super class that can get a reference to the the runtime class and do operations on it.Normally I would get the reference by saying "this.class", but because the method ...
HiPlease go through the program givenimport java.util.Date;class test { public static void main(String[] args) {Date date1 = new Date("16-Aug-2004");System.out.println("date1 = "+d);System.out.println(date1);Date date2 = new Date();c = d;c .setMonth(11);System.out.println("date1 = ...
472 byte By
sarubaby at 2007-9-30 21:34:05
Hi,I have made a very simple program ...It goes like thispackage ch03;public class mytest {public static void main(String[] args) {System.out.println("is the class file getting generated");}}when i compile this "javac mytest.java " it gets compiled properly. But when i try to run it..." java ...
Hi EveryBodyI am reading a file which consist of space in its name. The location of the file is C:/Documents and Settings/venkatesh/XMLtest/ListPageDisplayPropertiesMapping.xmlThe exception that i am getting is attached at the end of this message for reference. Simplest thing that can be done ...
My version is j2sdk1.4.2_01My Program is simple:public class Change{public static void main(String[] args){int amount;amount = SavitchIn.readLineInt();System.out.println(amount);}}after I complie it, it shows:Change.java:6: cannot resolve symbolsymbol : variable SavitchInlocation: class ...
Hello, everybody!I'm new to Java and I'm trying to install a JDBC driver. So, I downloaded the JayBird,a JDBC driver for Firebird, and now I don't know how to install the driver. I keepgetting this message from the compiler when I try to compile the example that comeswith the ...
in java.xxxxx.*; what * stands for, if it used for all , then y we have to specify the class in it like import java.awt.*; , but we want to use event we have write import java.awt.*; same happen in servlet when we use import java.servlet.*; we have to write import ...
Hi, everyoneWhat may cause instanceof operator returns false while getClass().getName() returns the right class name? I get a list through JMX. At first, I print the type of elements in the list. It is what I want. But ClassCastException is raised when I want to cast the element into the ...
Hello!How can I get the volume's disk serial number in Java? I need this information to make some protection in my application.
Hello!I have just downloaded JVMState but it refuses to work, it tells me the following:bash-2.05b$ ./visualgc 2213A J2SE 5.0 or later JDK is required to run this tool.The java version found in the PATH is:java version "1.5.0"Java(TM) 2 Runtime Environment, Standard Edition (build ...
737 byte By
Igorek at 2007-9-30 21:36:43
public class lab6{public static void main(String args[]){StringTokenizer s = new StringTokenizer("Windows Die Windows");while (s.hasMoreTokens()){System.out.println("Token: " + s.nextToken());}}}Why does this code not ...
I have a 64 bit server w/ 8 GB of RAM.Using the new 1.5 64 bit JVM on a 64 bit OS - Can I scale to 8 GB?Previously, we've proven Java to crash around 1.4 GB - 1.7 GB on a 32 bit arch.
365 byte By
yinhe at 2007-9-30 21:37:28
Hello,have a question:The java application that I am going to write is running on Windows2000/XP. I have a requirement that only one instance of this application can be running at same time. I don't want to use file lock because system might crash. Don't know if java can write to OS system ...
Hello,I have a List of objects called ComparableLabelValueBeans whose state consists of a Label field and a Value field, both of type String, and whose compareTo() method simply calls the String.compareTo() method for the Label field.I can sort this collection using Collection.sort(Collection), ...
727 byte By
laela at 2007-9-30 21:39:26
hi, ive only recently started using java and got a new laptop. Ive installed the J2SDK1.4_06 and since then i cant see any of the applets in my browser windows like i used to. I dont mean ones ive written or anything just the usual ones that are one normal web pages. ive no idea why this is, ...