Error Having access DLL

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

can windows- java- just get harder

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

IPAQ infrared with teilo package

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

Error in javah

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

Looking for deploy tool

200 byte By CRAZe_Inc. at 2007-9-30 21:08:36
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

help in console...!

402 byte By hyd_jamesbond at 2007-9-30 21:08:44
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 ...

FINDworksFINDNEXTdoesnt

2128 byte By TheInsider at 2007-9-30 21:09:21
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 ...

Help needed: Installation problems of JDK on windows XP Professional

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

Java 1.4 Compliant JVM for Linux PPC

300 byte By EmbSysPro1 at 2007-9-30 21:12:09
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. ...

Please give the answer ..ONLY..!

684 byte By hyd_jamesbond at 2007-9-30 21:12:12
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 ...

Appletviewer

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

how to use "search" now?

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

the new jre isn't working

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>?!!!

Running from the Command Line

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

Tutorial

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?

compile time error using jdk1.5. Please comment!!

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

Does code in finally block is executed immediately?

382 byte By eisenhower at 2007-9-30 21:18:45
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 ...

String.split

200 byte By sachindwd at 2007-9-30 21:19:05
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)

Problem with SimpleDoc printing

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

Serialization problems with class modifications

470 byte By lmartinou at 2007-9-30 21:20:11
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 ...

Synchro between Enumeration and Hashtable

378 byte By ludovicmaillet at 2007-9-30 21:20:33
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) ...

KeyListener HELP

6536 byte By CptDavidJr at 2007-9-30 21:21:19
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 ...

converting string to double

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

Security vulnerability in JRE

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

OutOfMemoryError....!

583 byte By hyd_jamesbond at 2007-9-30 21:22:21
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 ...

Doubt about screen height

654 byte By MarcosAntonioPS at 2007-9-30 21:24:17
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 ...

How to make a JMenu without items execute an event?

590 byte By MarcosAntonioPS at 2007-9-30 21:24:20
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) ...

createJavaVM not working pls help

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

JTAPI Installation

239 byte By Saiful_Islam_713 at 2007-9-30 21:27:49
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?

Windows API

328 byte By conormurphy33 at 2007-9-30 21:28:06
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 ...

doubt regarding interfaces

403 byte By mail_yousuf at 2007-9-30 21:28:15
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 ...

Does ZipEntry support chinese charactor set?

197 byte By hurricane at 2007-9-30 21:28:39
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.

BufferedImage from ImageIcon

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!

Yet another NoClassDefError Problem

1719 byte By Legend_Keeper at 2007-9-30 21:32:06
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 ...

J2ME Class Hiearchy

177 byte By secprovider at 2007-9-30 21:32:38
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

Getting a reference to the class from a static context

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

Basic doubt regarding memory allocation

1285 byte By Sreekanth_Balu at 2007-9-30 21:33:54
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 = ...

java.lang.ClassNotFoundException

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

java.net.MalformedURLException: unknown protocol: c

1848 byte By venkatesh@effigent.net at 2007-9-30 21:34:13
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 ...

cannot use "SavitchIn"

795 byte By clivengtw at 2007-9-30 21:34:42
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 ...

How to install a JDBC driver?

1902 byte By MarcosAntonioPS at 2007-9-30 21:35:01
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 ...

package: query

304 byte By sunny_4r_javaworld at 2007-9-30 21:35:13
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 ...

instanceof failed while getClass().getName() is right

1201 byte By shi_hang_nk at 2007-9-30 21:35:24
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 ...

Volume's disk serial number

142 byte By MarcosAntonioPS at 2007-9-30 21:35:35
Hello!How can I get the volume's disk serial number in Java? I need this information to make some protection in my application.

Bug of jvmstat? Have 1.5.0 installed but claims...

476 byte By linuxhippy at 2007-9-30 21:36:21
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 ...

StringTokenizer - not work!!!

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

-xMx ? M - Does JVM scale to 8 GB?

205 byte By Thomas_Brown at 2007-9-30 21:36:51
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.

only one application instance can run

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

Collating Lists of non-String objects

1067 byte By patterson_w at 2007-9-30 21:38:06
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), ...

cant see applets

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