javax/comm/SerialPortEvent

358 byte By musiigedeo at 2007-11-20 9:31:19
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"....

Split huge file during writing.

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

Connect to ftp server and send commands

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

self-sign applet

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

Get Certified and Get a Job.

835 byte By avularamesh4u at 2007-11-20 9:33:11
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....

Great Demand For IT Professionals.

525 byte By avularamesh4u at 2007-11-20 9:33:12
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...

show status problem

1074 byte By Kohinoor24 at 2007-11-20 9:33:33
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...

using JCheckBox, JButton and JTextArea with JDBC

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

java files

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

Model / View whit JInternalFrame

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

Sending Coordinates Through a Socket To Drive a Real-Time Network Pac-Man Game

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

Please Please I Need Help

653 byte By jnekoonam at 2007-11-20 9:34:59
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...

Hibernate - Unknown entity: java.util.ArrayList ??

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

Can I use jdk1.5 API into jdk1.4

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

digital image processing

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

Simple Integer & Array Problem

526 byte By slowcoder at 2007-11-20 9:36:03
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[][...

@override?

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

[RESOLVED] convertation - what is better?

165 byte By DarkCount at 2007-11-20 9:36:12
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 :)

Stroking and Filling Graphics

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

Dialog Owner

763 byte By Kohinoor24 at 2007-11-20 9:37:47
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...

Email Sending

521 byte By rajibdey2005 at 2007-11-20 9:39:03
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...

Static Method Reference

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

sorry to bother you again.Applet problem

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

Fun with a Payroll program

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

Problem with method not executing properly

61 byte By ateo at 2007-11-20 9:41:56
Never mind, I figured this one out on my own (imagine that!).

closing a serial port

1643 byte By musiigedeo at 2007-11-20 9:42:58
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...

server downloads

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.

Error in Java files

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

Try and Catch Statements

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

Better way to load images in Applets?

658 byte By BlackDragon777 at 2007-11-20 9:45:21
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...

Convert VBscript to Java,C or VC++ language

1079 byte By SuperFly07 at 2007-11-20 9:46:50
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...

Relatively changing size of components - Swing

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

ComboBox search

1552 byte By Kohinoor24 at 2007-11-20 9:48:15
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...

help needed in jtable

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

ASCII characters

231 byte By casper007 at 2007-11-20 9:49:30
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

Parking Ticket Simulator program help

12403 byte By codegewrew at 2007-11-20 9:52:05
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...

[RESOLVED] copying vector[]

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

Problem with Java program for images..

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

EJB Button validation

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 ?

Gridbag Layout problem

3229 byte By Kohinoor24 at 2007-11-20 9:53:23
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...

Java Book on GUI application development

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

Help needed in Showing data from database

194 byte By rajibdey2005 at 2007-11-20 9:53:48
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.

Huffman encoder

146 byte By casper007 at 2007-11-20 9:54:10
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

help, a midi issue!

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.

Getting problem while adding more no of components in grid bag layout

311 byte By jamesjohnney at 2007-11-20 9:55:02
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...

Document conversion PDF to MS doc and vice versa

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

Creating object where type is variable

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

Help Initializing Each Entry in an Array

1319 byte By slowcoder at 2007-11-20 9:55:44
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...

Shortage of Java Developers

717 byte By ChrisR_33016 at 2007-11-20 9:55:49
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...

JMenu doesnt display all JMenuitems

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