36,051 Topics

Member Avatar for
Member Avatar for pradeepsetty

Hi , I am running my own built plug-in in Eclipse 3.4.2. I successfully built my plug-in but when i try run my plug-in, eclipse is displaying following below error !SESSION 2009-07-06 17:05:16.181 ----------------------------------------------- eclipse.buildId=unknown java.version=1.5.0_16 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US Command-line arguments: -dev !ENTRY org.eclipse.osgi …

0
50
Member Avatar for K?!

Hi all I was wondering if there was something like Java's JList in HTML. I guess not because I can't find anything like it in the list of the form's input types. What is the easiest way to provide the functionality of a JList? Thx in advance. Greetings, K?! Ps: …

Member Avatar for K?!
0
409
Member Avatar for JohnPhilipps

Good afternoon, I have created a little java app in netbeans that I would like to use on a PC without netbeans. Therefore I am looking into how to make an executable out of the project, I found something called "javalauncher" that is suppose to bundle the class of my …

Member Avatar for stephen84s
0
94
Member Avatar for Web_Sailor

Hi I am trying to write a file writer inside my mouse event code. I am trying to use the file name that comes from JTextField and write it into a file. Here is my code:- [code] private void jButton2MouseClicked(java.awt.event.MouseEvent evt) { JFileChooser chooser = new JFileChooser(); chooser.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES); chooser.showSaveDialog(this); chooser.getSelectedFile(); …

Member Avatar for JamesCherrill
0
104
Member Avatar for ankurmawanda

i want to create a simple form which stores date in to a ms access db so i created a form register.html and action user_register.jsp i also created a ms aceess db when i fill the form the data is passed to the Auction.mdb but the server shows error HTTP …

Member Avatar for kvprajapati
0
179
Member Avatar for taresh1

I developed a jsp page.. and i dont want any one to access the page just by copying he URL what to do.???

Member Avatar for Thirusha
0
88
Member Avatar for ppomu

Hello, I need the jsp scripts to retrieve data of my radio button from database to my form which i have developed using jsp and connected to oracle database. Find below sample of my radio button code. Thank you [code=html]<td width="147" valign="middle"><input type="radio" name="biztype" id="biztype3" value="corporate" onclick="checko();"/> Corporate/Limited</td> <td width="182" …

Member Avatar for ppomu
0
2K
Member Avatar for get2tk

i an writing a room class java code that returns the temperature status of the room and return if a lightbulb is on or off. how do i write the method for the temperature? public class SittingRoom { String SRlightBulb; int SRTemperature; public SittingRoom() {String InitialStatus = null;int InitialTemp; SRlightBulb …

Member Avatar for teddies
0
112
Member Avatar for anusha88

this program divides the array into 6 segments of two elements each.but with each iteration the new array is not overwritten and it keeps displaying the first two values of the array 'array' [CODE] class tryy { public static void main(String args[]) { double array[]={12.43,34.34,4.432,9.433,4.787,4.2987,57.93,4.279,8.379,83.472,8.9867,879.56}; for(int i=0;i<array.length;i++) { for(int j=0;j<(int)(array.length/6);j=j+2) …

Member Avatar for anusha88
0
303
Member Avatar for akulkarni

[code] not clear with the basics of nullpont error; trying to create student database import java.io.*; class student1 { String name; int id; public void getdata(String name1,int id1) { name=name1; id=id1; } public void putdata() { System.out.println("\t"+id+" "+name); } } class student { public static void main(String args[])throws IOException { …

Member Avatar for JamesCherrill
0
232
Member Avatar for NeelimaB

i am getting an exception "org.apache.jasper.JasperException" with root cause "java.lang.NullPointerException" why does this exception come?

Member Avatar for masijade
0
54
Member Avatar for llemes4011

Hi. When I add a JComponent to my JFrame, it isn't the size of the remaining space in the frame. I want it to work in a way so that when i add a JComponent, it (and it's contents) stretches to fill the remaining space in the screen... Is there …

Member Avatar for llemes4011
0
144
Member Avatar for GDICommander

Hello everyone! I'm developping a chat application in a client/server context and every client has a shared directory. I want the server to know the directory structure of each shared directory of every client. I'm asking myself if there's an existing class in the Java API that can keep a …

Member Avatar for ~s.o.s~
0
209
Member Avatar for sharao

hi frnds i installed apache 2.0.59 + svn-win32-1.4.0 when iam importing upto 5 mb it's accepting when i upload my java project nearly 12 mb its showing the following error [B][U]Invalid change ordering: new node revision ID without delete [/U][/B] also tried with apache 2.2.11 + svn-win32 1.5.4 even though …

Member Avatar for sharao
0
134
Member Avatar for jonnytabpni

Hi folks, I've got a C# client which can currently communicate with a C# server. I am considering re-writing the server in Java (to make it work better on Linux). Currently, the C# setup uses BinaryReader/Writer on top of a Network Stream on top of a Socket. Is there some …

Member Avatar for kvprajapati
0
120
Member Avatar for breakid

it copy the file with 0 kb. can anyone please help me. I am working in this over a week no progress. server class [CODE] package javaapplication29; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.io.PrintWriter; import java.sql.ResultSet; import java.sql.SQLException; import java.util.logging.Level; import java.util.logging.Logger; import java.net.ServerSocket; import java.net.Socket; public class Server …

Member Avatar for ede
0
158
Member Avatar for purijatin

class A { void show() { System.out.println("show"); } } class B extends A { void disp() { System.out.println("disp"); } } class Prac2 { public static void main(String args[]) { A ob = new B(); ob.disp(); } } /*this thing shows an error */ now my question is :i thought we …

Member Avatar for purijatin
0
117
Member Avatar for akulkarni

i am getting run time error as provided in title my code is [code] class maxstring { public static void main(String args[]) { String s1="nikhil is a good boy"; int d;int x=0; d=s1.length(); String[] s2=new String[d]; char ch; for(int i=0;i<=d-1;i++) { ch=s1.charAt(i); if(ch==' ') { s2[x]=s1.substring(x,i-1); x=i+1; } } String …

Member Avatar for akulkarni
0
144
Member Avatar for Acegikmo

I'm making a Java applet that's a 2D platform game. Each map contains (So far) only collision lines, a background and a foreground image. The collision lines are used for collision detection with pretty much everything that collides with the terrain. For you guys to be able you help, I …

Member Avatar for VernonDozier
0
279
Member Avatar for sympatiko

hi im having problem on how to make the output of my programme like this: if you enter a number: (EVEN) * ** *** ***** If you enter a number:(ODD) ***** **** *** ** * im always having an output of: (EVEN) * ** *** **** (ODD) ***** **** *** …

Member Avatar for VernonDozier
0
699
Member Avatar for navarannan

[B][B][COLOR="Red"]Hi I need to develop an application which reads a csv file from a server does data validation and write to a file and then bulk upload the data to an Oracle database. The details of the requirement is The input csv file contains data that has to be populated …

Member Avatar for peter_budo
0
143
Member Avatar for painless

i m not getting the desired out put .....according to the program ,it will have to give the movement of the circle in the direction of the diagonal. [code=java] import javax.swing.*; import java.awt.*; public class DrawCircle{ int x=70; int y=70; public static void main(String[] args){ DrawCircle dc = new DrawCircle(); …

Member Avatar for kvprajapati
0
110
Member Avatar for kssi89

Hello! I'm taking a class in JAVA and learning a lot, but i'm stumped on a project where we are to find the difference between two dates. The method iv'e used is a little unconventional, I don't know if there is aproblem with the way i've structured the loop below... …

Member Avatar for JamesCherrill
0
141
Member Avatar for blueidea

[B]Background[/B] Most Java web reporting tools, especially those have some BI characteristics, often claim to end users that their products are simple to use. Some reporting tools promise that they can allow end users to make various statistical reports follow their own inclinations, and evenmake a report just by drag …

0
46
Member Avatar for srrjason

I have written some code for an Inventory program that I am working on for a Java Class. I keep getting the cannot find symbol error. I have been trying to fix it and can not. Some simple guidence would be nice. Here is what I have already with errors …

Member Avatar for VernonDozier
0
152
Member Avatar for einhachi

Here is a basic program I compiled and tried to run. import javax.swing.*; [code]import java.awt.*; public class GUITest extends Frame{ public GUITest(){ super("A basic GUI"); JPanel panel = new JPanel(); panel.setLayout(new GridLayout(2,2)); setVisible(true); } public static void main(String [] args){ new GUITest(); } } [/code] When I run it, the …

Member Avatar for painless
0
184
Member Avatar for sympatiko

im having a head ache how to make a java sample output like this: sample output: Please Enter 2 values:(number must range from 1 to 9)else display error message value 1: 3 value 2: 8 Fibonacci numbers are: 11 19 30 49 79 128 207 335 542 Even numbers are: …

Member Avatar for VernonDozier
0
112
Member Avatar for gokyo66

Hi there, new here, found this website this morning when I was looking on google for a solution related to JSP, and guess what? I found it here. So first of all thank you. Im Roberto 43 yo. Living in Switzerland moving to US probably end of this year. Im …

Member Avatar for artagnan1978
0
116
Member Avatar for emint

helo, can any one help to read one class from another class. i em knew with java actually. i got class a which has got sub class b static class. now i em trying to access class a from another class c using button. when in class c user click …

Member Avatar for emint
0
161
Member Avatar for ppomu

Hello, I have developed a web based application using jsp and connection as Oracle 9i database. The problem encountered is that whenever I am opening any jsp pages, a session is being created in the database which even after being killed did not disappear. In fact it should be that …

Member Avatar for peter_budo
0
147
Member Avatar for manveet

import java.io.*; class Abc { public static void main(String arg[]) { try{ File f= new File("c:/xyz.txt"); FileOutputStream fout=new FileOutputStream(f); byte data[]={65,66,67,68}; fout.write(data); fout.close();} catch(Exception e) { System.out.println(e); } } }

Member Avatar for kvprajapati
0
123
Member Avatar for cognitiaclaeves

You might have seen my lurking around on #Daniweb while I am at work. I thought I'd give you an idea who was behind that tongue-twisted nick. I go by "J", for reasons that are mostly historical. I suppose you could say at this point that I'm growing back into …

Member Avatar for happygeek
0
148
Member Avatar for cebubinary

hi im new to java and im learning about how to add/remove panels from another panel... [COLOR="red"] This is my main frame[/COLOR] [code=java]import java.awt.*; import javax.swing.*; import java.awt.event.*; public class DynamicFrame extends JFrame{ private JButton jb = new JButton("Remove"); private JPanel jp = new JPanel(); public DynamicFrame(){ jp.add(jb); add(jp); setVisible(true); …

Member Avatar for cebubinary
0
299
Member Avatar for anusha88

i need to install JfreeChart but I can't understand much of what the installation manual says. Which folder should you extract the Jfreechart files.How to change the classpath etc? I can't seem to understand.terribly stuck!!can anyone please help

Member Avatar for anusha88
0
425
Member Avatar for sharao

hi frnds [url]http://localhost/project[/url] using the above url iam running my project how to run when i type my project in uppercase like this url [url]http://localhost/PROJECT[/url]

Member Avatar for sharao
0
119
Member Avatar for nigelburrell

Hi, I'm not entirely sure which forum to post this question because I cannot determine whether it's a MySQL, Joomla, or PHP issue. But I will post it here, as some of you may know about this. I am using a custom built "user" table in my MySQL database, and …

Member Avatar for nigelburrell
0
165
Member Avatar for nam5a

I've created my own recursive file search. When the file is found it is printed that it is found, but the method searchForFile() does not terminate once the file is found, it continues to iterate and I believe this is when the nullPointerException is invoked. I've looked over this and …

Member Avatar for nam5a
0
149
Member Avatar for Acidburn

Hey guys, I've got a mobile application written which can browse through directories on the handheld device. This links to a C# application on windows via a usb cable (Simple phone cable). now i'm wondering how to go about transfering a file from the device over the serial conection and …

Member Avatar for di2daer
0
112
Member Avatar for adyopo

Ok, so my problem is this: I did a little java program to take the number of seconds from a text box and sleep a thread for that amount of seconds. Just to make it clear, here is the piece of code I used: [CODE=java]jTestare.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent …

Member Avatar for adyopo
0
130
Member Avatar for painless
Member Avatar for BestJewSinceJC
0
101
Member Avatar for lovley

Hey you guys, I am finishing my last two assignments in my class and I am having trouble because as you will see, the directions are not as they appear. My class is online so I don't have anyone I can rack my brain to or with and did I …

Member Avatar for VernonDozier
0
246
Member Avatar for karamjeet2004

[code=java]import javax.swing.*; import java.awt.*; import java.awt.geom.*; import java.sql.*; public class panel extends JFrame implements ActionListener { ResultSet res; Connection conn; Statement stat; String lang; JFrame frame = new JFrame("Graphics Button"); lang="abc"; JButton b1; JLabel l1,l2,l3; JPanel p,p1,p2,p3,p4; p.setSize(100,100); p.setLayout(new GridLayout(3,0)); p1=new JPanel(); p2=new JPanel(); p3=new JPanel(); p4=new JPanel(); l1=new JLabel(lang); …

Member Avatar for karamjeet2004
0
187
Member Avatar for akulkarni

i wish to print something like this ******** r ******* er ter uter puter mputer omputer computer where * is a blank space for each line i used array of strings String []s1=new String [20] for 5 blank spaces i used s1+" " + " "..+(5)"" then 4 blank spaces …

Member Avatar for VernonDozier
0
202
Member Avatar for akulkarni

i was trying to explain a friend about interface i have followed the abstract concept but dont know to how to demonstrate [code] inteface a { void meth(int i){ }; } class dani implements a { public static void main(String args[]) {int i; public void meth(5); System.out.print(i); } }[/code] if …

Member Avatar for JamesCherrill
0
91
Member Avatar for tactfulsaint

please how do i go about this RMI project it has been giving me alot of trouble Problem statement A management wishes to automate and centralize the entire system so that the data can be stored in one central dtatabase. the system should consist of client/server architechture that can enable …

Member Avatar for tactfulsaint
0
118
Member Avatar for vandana88

Hi I have a difficulty in insertion data. I don't get any error message but it doesn't insert data to database. My code is below. Where am I wrong? [code] <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <HR noshade size="5" width="50%" align="center"> <title>ZONE</title> …

Member Avatar for irfannagaria
0
165
Member Avatar for pradeepptp

when i use PacketCapture class in my project i got this error.please let me know the procedure fir solve this. PacketCapture: loading native library jpcap.. Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\WINDOWS\system32\jpcap.dll: Can't find dependent libraries at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751) at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1676) at java.lang.Runtime.loadLibrary0(Runtime.java:822) at java.lang.System.loadLibrary(System.java:992) at net.sourceforge.jpcap.capture.PacketCapture.<clinit>(PacketCapture.java:119) at VirtualWatch.addToolBarButtons(VirtualWatch.java:98) …

Member Avatar for masijade
0
289
Member Avatar for breakid

Hi I have to servers on is handling with string (recive an send string) the second is handling with file copy (working with string ) I wont to merge them into one server. but it wont work. can you help me plz. the file is on rapidshare but the status …

0
56
Member Avatar for thrusai

Can someone help me parse a XML string using SAX parser and then validate the same against the XSD defined' I have the program that works when I pass the input xml and xsd as arguments but my requirement involves passing a input string containing the target XML and the …

Member Avatar for thrusai
0
102
Member Avatar for Debby0424

The End.