32,204 Topics

Member Avatar for
Member Avatar for trishtren

hello again, i am having problems outputing the correct format of hex, the result i am aiming to achieve in my file should be : 78 00 07 D0 00 00 17 70 00 00 <-- aiming to achieve D8 00 6F D0 00 00 7F F0 00 <-- actual …

Member Avatar for NormR1
0
427
Member Avatar for raviaaaa

Hi All I wanted to write string.contains() in jdk 1.4, but i know 1.4 doesn't support contains is there any way to do the same ex: if the string contains "," i want check the condition String name; if(name.contains(",")) is there any way to do in jdk 1.4 Regards Ravi

Member Avatar for DavidKroukamp
0
561
Member Avatar for warlord902

I want to know, is it possible to use a mySQL database simultaneously from a PHP website and a Java Website both making continous read and write operations. Are there any tradeoffs? Does connection pooling affect this?

Member Avatar for joehms22
0
179
Member Avatar for atummapala

Hello Everybody, I am having a doubt regarding how to upload a file to multiple machines or servers. I tried using with FTP but getting ConnectException:connection Refused import sun.net.ftp.*; import java.io.*; public class SendFile { public static void main(String args[]) { String hostname = "172.14.3.23"; //Remote FTP server: Change this …

Member Avatar for JamesCherrill
0
434
Member Avatar for StephenHawking9

Hi Experts, I have started learning java recently and looking into some practice exercise. Just wante to know if there is a easy way, to convert a List of java.lang.Integer objects to array of primitive int type (not integer). Something like List<Integer> to int []? Or I need to loop …

Member Avatar for JamesCherrill
0
169
Member Avatar for aeshabana

Here is the poblem Class file I am not sure if it reading the id and saving it Java file (Error: After end of result set) when trying to display SQL, (Error: in the id) package homework1; import java.text.FieldPosition; import java.text.SimpleDateFormat; import java.util.Date; import java.sql.Connection; public class RegisterEntry { //Registration …

Member Avatar for DavidKroukamp
0
521
Member Avatar for ganges

how to connect html form feilds with mysql using hibernate, like giving input through the html form storing data, and retriving data kindly provide me simple example for those connection. thanking you.

Member Avatar for DavidKroukamp
0
129
Member Avatar for blackmagic01021

I have a marshalled data packet from the ActiveMQ connection. When I deceive the message my unmarshalling method should unmarshall the message to ite appropriate class object. I have the follwing message in the console of the Eclipse Indego. Exception in thread "ActiveMQ Session Task-87" java.lang.IllegalAccessError: com/sun/xml/bind/v2/runtime/reflect/opt/Const at weathergenerated.IMaritimeWeatherStationInformation$JaxbAccessorF_visibilityDistance.set(FieldAccessor_Integer.java:59) at …

Member Avatar for DavidKroukamp
0
736
Member Avatar for salina786

Hello.. I am working on a project in which im sending sms and receiving them in computer through SMSLIB where a mobile is connected to my computer via Bluetooth. I have to get the mobile number of that mobile which is connected to my computer but i am unable to …

Member Avatar for DavidKroukamp
0
103
Member Avatar for pooja.shinde

Hi i want to synchronize client system clock with server system clock. When i execute command "NET TIME \\servertosynchwith /SET /YES" through command prompt, it works well. But when we execute it through java program, it doesn't gives error, but also doesn's works. Client system clock remains as it is. …

Member Avatar for DavidKroukamp
0
156
Member Avatar for sammoto

So I'm trying to write a program to play the card game Go Fish, and I can't get the following code to compile: import java.util.Random; public class CardPile { public static final int DECKSIZE = 52; private Card[] cards; private int numCards; public CardPile() { cards = new Card[DECKSIZE]; numCards …

Member Avatar for sammoto
1
410
Member Avatar for choosenalpha

Hi All, I am needing some assistance on how I can grab the values for the number of die that come up as 1, 2, 3, 4, 5 or 6. I have the count variables holding the count for each one that fits the "if statement". But I can't use …

Member Avatar for choosenalpha
1
473
Member Avatar for sammoto

The issue will be pretty clear to those of you with experience. As the title suggests, I'm having trouble accessing private variables from other classes. I'll tried to attach all the relevant files, but it wouldn't let me, so I'll try to explain my issue first then post all the …

Member Avatar for sammoto
0
188
Member Avatar for pitic

How can i inject the namespace into an xml file which doesn't have one? I scane the file from a 2d barcode, and, the creator decided to not write the namespace info into the xml. So i have to add it after scanning. How can i do that?

Member Avatar for gusano79
0
121
Member Avatar for msd153

import java.io.IOException; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; import javax.xml.parsers.ParserConfigurationException; import org.xml.sax.InputSource; import org.xml.sax.SAXException; //import com.edankert.SimpleErrorHandler; public abstract class Wellformed extends DocumentBuilder { public static void main(String[] args) { try { DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); factory.setValidating(false); factory.setNamespaceAware(true); DocumentBuilder builder = factory.newDocumentBuilder(); builder.setErrorHandler(new SimpleErrorHandler()); builder.parse(new InputSource("contacts.xml")); } catch (ParserConfigurationException e) { e.printStackTrace(); } …

Member Avatar for NormR1
0
199
Member Avatar for Gata_Salvaje

It's my first time to use oracle and i'm kinda lost :S I'm using netbeans v6.8 and i want to make a connection between Oracle 10g DB and java to make my program insert and retrieve data from the db - i tried searching for oracle's libraries to include it …

Member Avatar for Gata_Salvaje
0
178
Member Avatar for GlenRogers

Im writing some software for a friends Pc repair shop, simple booking in software so he has a record of customers, addresses and repairs they have had done. I'm getting throught it quite well thanks to members of this forum. Question is: I have a Customer class with attributes String …

Member Avatar for GlenRogers
0
157
Member Avatar for sshekhar.1987
Member Avatar for peter_budo
0
101
Member Avatar for GlenRogers

I'm trying to add an image to the top of my GUI as a logo. I tried to put it in a JPanel then add the JPanel at the top of the GUI, the only problem is that my image isnt going into my JPanel. Heres my code for it …

Member Avatar for GlenRogers
0
233
Member Avatar for jooa

Hi, I'm trying to write some code that will draw a filled in black circle at the coordinates where the mouse is clicked. Here is what I have written so far, I can currently get the coordinates of the mouse click point but nothing is displayed. I also get an …

Member Avatar for Roberdus
0
4K
Member Avatar for mydreamgirl

My source code runs fine in IBM RAD. When I tried to run it in JBuilder, I encountered an error "Incompatible object argument for function call" while running a JSP file. Any idea how to handle it? See details below: 012-06-16 10:20:48 - Ctx( ): Exception in: R( + /FileUploadAction.jsp …

Member Avatar for mydreamgirl
0
459
Member Avatar for london-G

Hello, can you please help me to see what's wrong? INSERT INTO jobs (priority, date, deadline, material, status) VALUES (?, ?,?,?,? ) select customerID from Customer where CustomerID =?"

Member Avatar for stultuske
0
180
Member Avatar for GlenRogers

How would I go about searching a map that hasbeen written to a file? My GUI has a method caled processFind() which prints all keys in the map, I have this working but not if the map is saved to a file. private void processFind() { gui.results.setText(""); for (Object s …

Member Avatar for GlenRogers
0
104
Member Avatar for pooja.shinde

Can i create **GUI in round** shape wihtout title bar by extending **JFrame** class in java. I want circular shape instead of default rectangle. How can i do this? Plz give solution as soon as possible.

Member Avatar for JamesCherrill
0
608
Member Avatar for millroy

well i am tring to make compass with a needle which rotates with respect to the position but the problem is my new to j2me and i dont know how could i access my gps to to do so i want to know wat r the various api's i can …

Member Avatar for millroy
0
82
Member Avatar for kaushik259106

Hi every one, Can anyone give me some idea about this! I need to check a string is numeric or not. Example: if string is 1111111111 returns true if string is 11111111aa returns false if string is 11 1111111 returns false if string is 111~`11111 returns false Any idea will …

Member Avatar for ScottyKnows
0
1K
Member Avatar for Krokcy

Is there anyway, through java, to tell whether a tv connected to your computer is turned on or off? Or if its not build into java is there any way to even do this in windows? Because nothing change in windows or my raedeon driver when i turn my tv …

Member Avatar for Krokcy
0
275
Member Avatar for pooja.shinde

System date & time is in SimpleDate format. How can i convert this into integer? **"sdf.format(new Date(System.currentTimeMillis()))"...**.......... I want to convert current time** into integer** data type. *Plz plz plz help me.* Any help for this is alwayz welcome.

Member Avatar for pooja.shinde
0
242
Member Avatar for trishtren

Hey, Im stuck trying to figure out how to insert one byte between two other bytes that have already been created in an output stream: OutputStream out = new FileOutputStream("MyFile"); try { out.write((byte) 70); /*Byte should be inserted between these elements*/ out.write((byte) 40); /* but must be performed at end …

Member Avatar for trishtren
0
181
Member Avatar for RaymondTracer

**Wow I'm an idiot, I just saw the problem, how did I not see that for so long. How do I delete threads?** Hello everyone! I have a problem that confuses the hell out of me, when I try to compile my class file I get the "illegal start of …

Member Avatar for RaymondTracer
0
204

The End.