Hey guyswhen I try to execute my jar file, I do get the errorException in thread "main" java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener It seems that i cannot find the class javax.comm.SerialPortEventListenerbut I have in the manifest file included the line "Class-Path: comm.jar"....
806 byte By
TOMNKZ at 2007-11-20 9:32:23
Hi. I have freemarker template, which produce huge file. template.procced(bean, writer); I have to provider a writer for this function, which split result on several files. So, as I understand, the solution is to provide some ZipWriter, which archives file and split it into several files. This...
83 byte By
xxarmoxx at 2007-11-20 9:32:29
How can I connect to a ftp server and send commands and also receive output? Thanks
1187 byte By
zhshqzyc at 2007-11-20 9:32:33
I am doing a self-signed certificate, I followed an example on the web.But I got wrong at some step. Any help, thanks.Where is the file migsuncert.crt located?C:\Program Files\Java\jdk1.6.0_01\bin>keytool -genkey -keyalg rsa -alias migkeyEnter keystore password:What is your first and last name?...
Hi,Certified Professionals are globally recognized for their unmatched skills and high level of productivity. The practical expertise that is gained through the certification process provides individuals with the kind of know-how that gets recognizedon the job, among peers, and by future employers....
There is a great demand for IT Professionals across India and Abroad.Get trained at Integer and learn Industry relevant courses,Set standards with certification,Go! After your Dream JobWe offer courses on .Net, Java/J2EE, Testing, Embedded Systems, VLSI, Banking, Mutual Fund Training for AMFI Certif...
Hi all,Iam developing a client applet under java.My class extends from JApplet.Have run into a problem in which the "showstatus" method is not displaying anything on the browser status bar.My code is as follows:private void loadInitialData(){ Runnable worker =new Runnable(){ public void r...
844 byte By
warship at 2007-11-20 9:33:48
Hello.Im wondering do any of you have links to web pages that include tutorials and source code on using JCheckBox, JButton and JTextArea with JDBC. would any of you who have experience with using JCheckBox, JButton, JTextArea and JDBC together be able to give me a few tips on how to select certain...
391 byte By
lontana at 2007-11-20 9:33:51
Hi to all,I am using NetBeans 5.5. I created a java file with main class. Now I want to create some classes on my own and now I have soem question:Do I have to write all the classses in the fila where the main class is?If not, does it play any role how I will name that other java file (i.e. does thi...
410 byte By
Craze at 2007-11-20 9:34:43
Hello.I'm writing an application that uses JInternalFrame. And are wondering a bit what about class layout. As it is now i got Main - AppView - Main view.AppLogonView - a view for one of the Internal frames.AppModel - But my question is should i have one model for each Internal frame as they w...
782 byte By
csnopes at 2007-11-20 9:34:53
I'm creating a two-player Pac-Man game in which one player controls Pac-Man and the other controls a single ghost. While Pac-Man gains points, the ghost loses points. The goal for the ghost is to catch Pac-Man before the points tip in Pac's favor.All that is in working order.Now, the coord...
Hi,Here's my question. I have a sample file listed bellow:10 11 12 13 14 14 13 12 11 1010 11 12 13 12 11 1010 11 12 10 11 12Note that these data are in a file. Each line in the file will contain a set of integers separated by spaces. how can I write a program that reads the name of a file from...
1545 byte By
Pooter8D at 2007-11-20 9:35:12
Hi,I've been googling this problem, but i cannot resolve it. I have a DB insert class that will insert initial values to the DB for testing purposes.private ArrayList<CategoryEnt> categorys = new ArrayList<CategoryEnt>();CategoryEnt medical = new CategoryEnt("Medical");this.category...
205 byte By
mskamal at 2007-11-20 9:35:17
I would like to use jdk1.5 com.sun.rowset.CachedRowSetImpl api into jdk1.4. Can I use it any way like import external jar facility in eclipse, will it makes any problem in compiling, Please tell sometihng
138 byte By
lontana at 2007-11-20 9:35:48
Hi All,<br/>Does anyone know if there is an open source or any cost-free java library that deals with digital image processing?<br/>Thanks
This code is what I would do in C; however, Java gives two errors on the lines below with astericks. The error is: Type mismatch: cannot convert from int[] to int. What do I need to do in Java to fix this without changing what it does? Thanks for the help!private void e_map(int m1[][], int m2[][...
291 byte By
George2 at 2007-11-20 9:36:08
Hello everyone,<br/>I am using JDK 1.4 and there is a compiling a 3rd party program error because of un-recognized word @override. Could anyone let me know what is the function of @override and in order to use it, which version of JDK is required?<br/>thanks in advance,<br/>George
Hi all!<br/>I have a *.doc file with a table (consist of two columns). What is the best way to parse the table's cell?? I'm interesting in your opinions :)
1060 byte By
zhshqzyc at 2007-11-20 9:36:34
Hello, in my code, I want to stroke and fill complicated shapes with graphics 2D.However I only obtain fillng. Where is stroking?It looks like fillinging overlaps my stroking.Thanks for any reply. public void drawSides(Graphics2D g2d){ g2d.setColor(Color.GRAY); for (int i = 0;...
Hi all,Iam developing an applet ...My applet is derived from the Swing JApplet.Iam creating a custom dialog as follows from within my applet.public class MyDialog extends JDialog{public MyDialog(JDialog owner,String title,boolean modal){ super(owner,title,modal); }}Now my question is,what should...
Can anyone please help me out of this: I have to prepare a project in which student will register their account with my dummy college through website student registration form, if any of the detail is incorrect, it shoul auto send a email to the student specifying that. I am preparing this project i...
710 byte By
ldb88 at 2007-11-20 9:40:24
I just started learning Java today (I've been using C++ for about a year now). So I go to write my first program, and "Hello Word" (yes, I mispelled it) prints fine. Then I try to create a method. But I cannot call the method. Eclipse says "Cannot make a static reference to the non-static me...
3227 byte By
zhshqzyc at 2007-11-20 9:41:00
I self-signed an applet successfully and created a JAR file by NetBeans IDE. When I open the web page, getting error message from Java console, why?ThanksJava Plug-in 1.5.0_12Using JRE version 1.5.0_12 Java HotSpot(TM) Client VMUser home directory = C:\Documents and Settings\Hy ----------------c:...
4166 byte By
billyb0b at 2007-11-20 9:41:45
hello. I am having trouble getting this payroll program to work properly. This is what I have to do... "I need to modify the Payroll Program so that it uses a class to store and retrieve the employee's name, the hourly rate, and the number of hours worked. Use a constructor to initialize the...
61 byte By
ateo at 2007-11-20 9:41:56
Never mind, I figured this one out on my own (imagine that!).
Hey GuysAm using the code below to check whether a serial port is open, if its open, I close it and open it again. But I get an exception at the line marked by ****. why do I get it? (serialPort is defined like "SerialPort serialPort;")[code]portList = CommPortIdentifier.getPortIdentifiers(); wh...
205 byte By
__gini2 at 2007-11-20 9:44:01
I have created a system in Java and involves using web services. The server that I need to download are Tomcat, Axis and Ant. Please recommend some websites that has the latest downloads for these servers.
384 byte By
__gini2 at 2007-11-20 9:44:03
When I try to compile Java classes that have package statements in it, I get an error because it is not properly stored in the proper packages as named in the package statement. When I install these classes into their appropriate packages, is it supposed to be correct or is there anything else I hav...
1406 byte By
Pez at 2007-11-20 9:44:53
Hi im making a script for a game .. basically i cant get it to compile because im not very good at try and catch statements, if anyone could help me correct where im going wrong it would be more than great .. Thanks PezHeres my Script : import java.util.ArrayList;import com.aresbot.methods.*;import...
Hi. I want to know if there is a better more OOP way of loading images in an applet. So far the only way I know how to load images in an applet is to do the followingIn the Applet class,URL base = getDocumentBase();Image img = getImage(base,"blah.gif");getImage is a member function of the Applet c...
Do any of you know how to write code in Java, C or VC++ to disable password protected excel files? We want to automate this process. I know how we can disable it manually. We are looking to automate the process for reading excel file with password protections on them.I have a VB script that works f...
444 byte By
jobless at 2007-11-20 9:48:10
Hello All,I have a JTabbedPane containing a JPanel (mainPanel) as one of the tabs.This JPanel contains two other JPanels (panel1 and panel2). I need panel1 to occupy 75% of the window space and panel2 to occupy the rest. When I resize the window, I would like the sizes to be changed relatively with...
Hi Guys,I have run into a problem,where I need a combobox which is editable & the user can type in some values there.All the values which can come into the combobox is stored in a collection List.(ie: the values which the user can see in the combobox drop down list when he clicks on the combobox but...
434 byte By
martin1 at 2007-11-20 9:49:02
hi all,i am making a application in which i am using jtable .The jtable has two columns and and number of rows.Now suppose i am entering data in the 1st row that is in both the columns and there is a button below the jtable which fetches the values from the jtable rows.My problem is that i am gettig...
I had a assignment from my tutor...he ask us to write a program to compute the frequency of ASCII characters from a text file....I have like no idea no doing it as I have not touch java for a very long time.....please help...thanks
I'm having trouble getting this to work so I thought this might be a good place to ask for help. Please take a look at my code.Below is my assignment, verbatim.For this assignment you will design a set of classes that work together to simulate a police officer issuing a parking ticket. You shou...
1090 byte By
ggmn at 2007-11-20 9:52:21
Hi,I have two arrays, one a three dimentional int arry, the other a single array of vectors, and what I need to do is pass/copy these from one object to another. I was under the impression I was ok to do this:array1 = array2;and have array1 then point at the start of array2, but this doesn't se...
2463 byte By
jcd29 at 2007-11-20 9:52:48
The program has to have three checkboxes, and when you click the first one, image #1 will appear, and so on. But I'm having problems with it. This is what we have so far:(keep in mind I'm still learning basic Java stuff, so if you see rookie mistakes, be kind :) )import java.awt.*;import j...
92 byte By
Arasan at 2007-11-20 9:53:07
How can i validate Button in EJB? Is it possible ? If so, can any one give a code or link ?
Hi all,Have a problem with GridBagLayout.am placing my componenets in the cells as follows.JLabel paneHeader = new JLabel("Browse"); add(paneHeader,gridBagConstraint.getGridBagConstraint(0,0,2,1,0.5,0,GridBagConstraints.NORTH,GridBagConstraints.HORIZONTAL,gridBagConstraint.setInsets(0,0,0,0),0,0...
555 byte By
sarnkr at 2007-11-20 9:53:27
I am totally new to java and learning self. Can anybody suggest me any book on building GUI applications using AWT/swing. I am not much aware of events etc, especially I find difficulty while doing validation checks on fields etc through it. I am dveloping GUI aplication using JDBC e.g If I wanted...
How to show data in JTable from a table in database in tabular format having that numbers of rows and columns as it is in the database in that table. I am using MSSQL Server 2000 as my database.
hi...may i noe how to write a program to implement binary Huffman encoder...Becoz i cannot find any example on the internet...please help...thanks
160 byte By
Andelie at 2007-11-20 9:54:31
hello all:<br/>i would like to convert midi to wav or mp3, but i can not find any tool or method. please show me a way, thanks a lot, for any help.<br/>Andelie.
In our module we are using Gridbaglayout for formating the components, and there is a button to add more no of text boxes, when the count of text boxes reaches some certian limit the entire system getting hanged we are unable to add more no of text boxes in Gridbag layout .. can you help me in this...
433 byte By
abintoms at 2007-11-20 9:55:15
Hello everyone,Can you tell me how to convert MS word documents to PDF format and vice versa.. I'm working on a project which requires me to do this..i know we can implement using poi or fop or jexcel .. which one is better? I'd be grateful if u could tell me a good link with good example...
718 byte By
minime at 2007-11-20 9:55:26
HiI'm writing a program where I want to be able to add class files that can be created from the program that are defined by an interface. For this i want to be able to use a database to contain 2 strings, one is the class name and the other is a service name.All classes created are extended fr...
Apparantly I created an array of null pointers shown in the code below (which is obviously wrong). I'm reading a Java book and from what I gather, I need to go through that entire array and initialize each entry to a new object. Initialize as statics and iterate over the entire array and just...
Good day everyone,I work in the South Florida area for a company by the name of the Eventus Group, we are a technical employment and consulting firm and we're realizing the shortage of Java developers in the Miami area. We currently have a variety of Java Development positions ranging from a Jr...
8203 byte By
zhshqzyc at 2007-11-20 9:55:52
Hello, I have a JMenu that contains many items.However only 35 items are displayed from top to bottom.why?thanks. It is an executable demo code.It seems to be a bug of Java according to my google?import java.awt.*;import java.awt.event.*;import javax.swing.JMenu;import javax.swing.JMenuItem;import j...