32,204 Topics

Member Avatar for
Member Avatar for mahdi68

Hi is java suitable language for robot programming ( like line follower robots) ??? thanks

Member Avatar for NormR1
0
85
Member Avatar for abctoz

Hi All, I have created a CON, PRN folder([url]http://www.hoax-slayer.com/con-folder-name.shtml[/url]) using "md\\.\\c:\con " through DOS prompt, i was trying to create same CON and PRN folder through Java code using "Runtime.getRuntime().exec("md\\\\.\\d:\\con");" But it is giving following Exception : Cannot run program "md\\.\d:\con": CreateProcess error=2, The system cannot find the file specified …

Member Avatar for masijade
0
172
Member Avatar for ttboy04

Hello, My ouput is showing as... "1 2 3 (10)(23)(29)" when it should be... "1(10) 2(23) 3(29)" I don't think I am too far off. Here's the code and thanks in advance. // int[] Groups = {10, 23, 29}; in the constructor public String toString() { String tempStringB = ""; …

Member Avatar for ttboy04
0
105
Member Avatar for johndoe444

Hi, I am getting this exception: [CODE] javax.naming.directory.InvalidAttributeValueException: [LDAP: error code 21 - ob jectClass: value #0 invalid per syntax]; remaining name 'dc=jndiTest' at com.sun.jndi.ldap.LdapCtx.mapErrorCode(Unknown Source) at com.sun.jndi.ldap.LdapCtx.processReturnCode(Unknown Source) at com.sun.jndi.ldap.LdapCtx.processReturnCode(Unknown Source) at com.sun.jndi.ldap.LdapCtx.c_createSubcontext(Unknown Source) at com.sun.jndi.ldap.LdapCtx.c_createSubcontext(Unknown Source) at com.sun.jndi.toolkit.ctx.ComponentContext.p_createSubcontext(Unknown Source) at com.sun.jndi.toolkit.ctx.PartialCompositeContext.createSubcontext(Unk nown Source) at com.sun.jndi.toolkit.ctx.PartialCompositeContext.createSubcontext(Unk nown Source) at …

Member Avatar for johndoe444
0
142
Member Avatar for P00dle
Member Avatar for MrBlack

Hi i m new to java, i want to make a simple application with netbeans ,(To Learn) i want to learn how to get data from a data base(mysql database) and display to textBoxes, and also want to learn how insert delete update database, Are there any tutorials or ebooks.plz …

Member Avatar for MrBlack
0
110
Member Avatar for abctoz

HI All, I want to create one folder which should open only with my application. Is it possible through JAVA ?? Please Guide me and send the Java code if possible Thanks in Advance

Member Avatar for masijade
0
298
Member Avatar for BuhRock

I have to write a program that creates a GUI and asks the user to select from a group of buttons which time of the day they made the call, and input in a text field how many minutes the call was. for the day time, it's supposed to be …

Member Avatar for NormR1
0
761
Member Avatar for spartanace

Hey for some reason my rectangles are being drawn after the start variable has been incremented all the way through. This is causing them to go off the screen. What i wanted, is like in the code, i want it to draw, increment draw increment until the loop is finished.[CODE]import …

Member Avatar for NormR1
0
606
Member Avatar for Alex_

I'm trying to make a html editor. I need to set different colors for different words... I managed to the change text's background color, but not it's foreground. Can some one help me? this is my code [code=java] public class HEditorView extends FrameView { public HEditorView(SingleFrameApplication app) { super(app); initComponents(); …

Member Avatar for Alex_
0
325
Member Avatar for MrBlack

There is an error , it is cannot find Symbol [CODE] import java.sql.*; public class Main { public static void main(String[] args) { try { Class.forName("com.mysql.jdbc.Driver"); String connectionUrl = "jdbc:mysql://localhost/mytestdb?" + "user=root&password=PHP"; Connection con = DriverManager.getConnection(connectionUrl); } catch (SQLException e) { System.out.println("SQL Exception: "+ e.toString()); } catch (ClassNotFoundException cE) { …

Member Avatar for MrBlack
0
4K
Member Avatar for ceyesuma

Hello: Soon I will need to have my foriegn keys working. I have tried to set them up with no luck. Could someone show me how to set the payee_uid below? I am using an Apache Derby Embbeded Db 10.5.3. Thanks [code] <entry key="createStudentTable"> CREATE TABLE student ( stu_uid VARCHAR(11) …

Member Avatar for ceyesuma
0
89
Member Avatar for bymak87

I had to write 10 objects of cars into an array and now my problem now is writing the array into a text file. I am able to get the correct output in the console, but when I open the text file I get part of the desired output, as …

Member Avatar for JamesCherrill
0
228
Member Avatar for intes77

Hello im having problems with my code. i wanted to make a program that would let me enter anything and then place each one of them inside the array. [CODE]import java.util.*; class charAt { public static void main(String[]args) { Scanner input=new Scanner(System.in); String[]sample=new String[52]; String enter; int x; System.out.println("Enter something"); …

Member Avatar for intes77
0
6K
Member Avatar for intes77

i am having problems in reading the contents of my .dat file. the contents of my .dat file are the following: 10.20 60.20 70.20 25.25 1.1 2.2 3.3 4.4 my expected output should look like this: --------- --------- --------- --------- 10.20 60.20 70.20 25.25 1.10 2.20 3.30 4.40 but when …

Member Avatar for intes77
0
149
Member Avatar for daudiam

java class files are not loaded into memory till the time they are referenced. If this is true, then the use of import statement is just to save a bit of typing. Is it the case ?

Member Avatar for JamesCherrill
0
127
Member Avatar for danarmstrong

I have a servlet written in Java and I am attempting to send data to the method using C and the WinSock2 API. When I attempt to just send the raw data I get an invalid stream header error. I am not sure how I should go about handling this …

Member Avatar for niyujin
0
79
Member Avatar for leiger

I'm trying to list a bunch of buttons vertically, but am having problems even getting that much done. I'm pretty sure I have the scroll pane working (it just isn't being used yet so I can't test it). This is part of an assignment so I'd prefer not to post …

Member Avatar for leiger
0
2K
Member Avatar for adaku

Please can one help me with a better way of Converting Date( in Hour and Minutes) in to Double or Integers. I want to use it for arithmetic purpose e.g, if the Date Input is 6 hrs:30min, then i want it converted in to 6.5, ....or 12 hrs: 15 min …

Member Avatar for JamesCherrill
0
86
Member Avatar for white feather

I get this error when i write to my C drive using an ObjectOutputStream [CODE] List<String> strings = new ArrayList<String>(); strings.add("test1"); strings.add("test2"); strings.add("test3"); IO.IO.writeListToFile("C:\\Users\\coconnor\\Documents\\Java\\ToolKit\\", strings); [/CODE] [CODE] public static void writeListToFile(String location, List<?> list) { ObjectOutputStream p = null; File f = new File(location); try { p = new ObjectOutputStream(new …

Member Avatar for white feather
0
5K
Member Avatar for mitch9654

Hello, I am having trouble writing to a file from an applet (in a local directory) without totally demolishing the file and erasing it's contents (okay, maybe I am exaggerating on the [I]destroying[/I] part :P, but it does erase it!). Also, I just can't make the applet [I]write[/I] to the …

Member Avatar for mitch9654
0
142
Member Avatar for muddy900

Hi guys, I'm trying to read a file which contains text in arabic. The file text is aligned from right to left. But when I read it, the output is from left to right. Is there any way to align it from right to left? I'm trying to display the …

Member Avatar for muddy900
0
89
Member Avatar for neti1987

hi! I add code example. when I run that, I get exceptions: [CODE] /******************************************************************************* * Copyright (c) 2000, 2005 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this …

Member Avatar for neti1987
0
276
Member Avatar for ceyesuma

I can't seem to find the correct way to add an alias in a select statement. Is there a way to do this using an embedded Apache derby database? The usual way will not work. ex: [icode] SELECT uid AS User,fName AS First,lName AS Last FROM table[/icode]

Member Avatar for ceyesuma
0
705
Member Avatar for ceyesuma

Hello: I have created a Desktop that interacts with a embedded db. I also have crated a flash program that opens and runs itself in any web browser. My inquiring is to find out if I can create a button to launch this flash program from my Java app? Also …

Member Avatar for NormR1
0
305
Member Avatar for Viruthagiri

My project is e learning project. I've a "choose the correct answer" module. When the click the "begin test" button it should fetch the questions and options from database and display it. Instead of that my page displays "java.lang.NullPointerException". I've assigned unique values for each error. So the exact error …

Member Avatar for ~s.o.s~
0
140
Member Avatar for tyson.crouch

G'day, I was wondering if anyone here knew how i could convert java output to a formatted PDF file? If anyone knows of a reliable open-source project it would be much appreciated. Thx, TC

Member Avatar for ~s.o.s~
0
46
Member Avatar for mikev9359

I'm trying long distance learning & I'm having many issues. I was able to write a program that runs well using an IF loop. but now I am to use that same exact program with a WHILE loop & I just can't understand any explanation I receive from the instructor. …

Member Avatar for XP1
0
357
Member Avatar for leiger

This is code I've taken from another website, and adapted to work with the JFileChooser. I got it working so that someone could select a java file with the chooser, and I'd send a "java -jar FILENAME" to the console and the app would launch. However as soon as I …

Member Avatar for Gribouillis
0
643
Member Avatar for jcstarjcstar

can any one provide java code for bellman ford algorithm with java applet? here is the algorithm: BELLMAN-FORD (G, w, s) INITIALIZE-SINGLE-SOURCE (G, s) for each vertex i = 1 to V[G] - 1 do for each edge (u, v) in E[G] do RELAX (u, v, w) For each edge …

0
21

The End.