35,618 Topics

Member Avatar for
Member Avatar for jamojo

Hello Everyone, I created a java code that runs batch files. Then, I deployed the java classes in apache-tomcat-5.5.26. The code worked when I ran the tomcat manually but when I ran the tomcat as a windows service, it did not work. I checked the tomcat log files but apparently …

Member Avatar for ~s.o.s~
0
149
Member Avatar for coco24

Hello I am new to Java and I have no idea where to start with this program. Can somebody please start me off or display how you would execute the code. Thank you. This is what I have so far, but it is just the basics: [code] /* * For …

Member Avatar for JKP()
0
121
Member Avatar for anithajerome

Hi I am running an jsp application thru which the values are saved in mysql. all values are saved twice.Pls help me how to avoid that

Member Avatar for masijade
0
160
Member Avatar for ChiboSempai

I wanted to make a program that deals with the editing of hex files, but I'm not sure how I would go about doing this. Normally I can just input a file into a Java program, read it into a String, then do what I please with it. If any …

Member Avatar for JamesCherrill
0
233
Member Avatar for ubi_ct83

hi, if i have this kind of string list: String num_list="1,2,5,3,4,6"; how can i make it in array? arraynum[100]=[1 , 2 , 5 , 3 , 4 , 6]

Member Avatar for masijade
0
73
Member Avatar for ypks_destiny

I am working on Myql database and netbeans. i want to edit the table in a Jsp page and i want to place new values in it. I mean the previous data in the table must be dispalyed after that i want to edit it and replace new values ...after …

Member Avatar for ypks_destiny
0
2K
Member Avatar for Neversleepin

Hello, Could someone advice me for the best ide for GUI building in java? Thank you

Member Avatar for peter_budo
0
466
Member Avatar for Chaster

Hi all! My problem is the following: I'm using Spring MVC, and trying to use several controllers (one for each jsp). My controllers are defined in the xml like: <bean id="/login.htm" class="controllers.LoginController" /> <bean id="/menu.htm" class="controllers.MenuController" /> inside LoginController's onSubmit I do a ModelAndView("menu", ...). That is OK, the menu …

0
82
Member Avatar for o0sample0o

Hello, i'm a new member here in this forum.. and i think lot of programmers may help me here.. i'm a newbie also in java programming.. my teacher wants us to make a program that accepts 5 integers and then arrange it from highest to lowest.. i have an idea …

Member Avatar for Eric Cute
0
1K
Member Avatar for sasi_88

hi i have the database like author books etc but i want to the tree lookup ->author ->books ->topics first on page load display all the authors from the databse and click the particular author display the child node of all the books written by the author. again click the …

0
58
Member Avatar for pripa

I am doing a project in jsp of creating question paper from question bank. Here we have to generate a paper based on the language like c,c++. we want to know how to generate the paper by considering two question from each area like inheritence,exception handling.the question has to be …

Member Avatar for lisaroy1
0
157
Member Avatar for ovidiu_b13

Can someone please help me make a simple java program for my class. I am a beginner, and don't know how to make one. I know a fiew stuff, but not enough. The teachers requests are: Write a program in netbeans that contains 4 of the following: 1. Classes - …

Member Avatar for JDCyrus
0
164
Member Avatar for deepak.marur

Hi, friends. I am wondering if it is possible to post messages to facebook through SMS. I have to write an application that connects to the facebook to post messages sent through a Short Code from a mobile subscriber. I am confused about the various APIs from facebook if they …

Member Avatar for JDCyrus
0
93
Member Avatar for katara

please single link list to made song list.. i dont know anything about that..please

Member Avatar for JDCyrus
0
114
Member Avatar for jayvee0890

what wrong with this? [code] import java.util.Scanner; public class mid2 { public static void main(String[] args) { int a; int m; boolean jv=true; Scanner sc=new Scanner (System.in); System.out.println("Programmed by: Jesus Vinson J. Dominguez:"); System.out.println("Pls type number:"); a=sc.nextInt(); System.out.println("Pls type another number:"); m=sc.nextInt(); int gcf=1; int k=2; while (k=<a && k<=m){ …

Member Avatar for JDCyrus
0
84
Member Avatar for NaturalSwtHeart

I was just wondering what would be the best sort algorithm for sorting both a small array and a large one. Or if you can point me to a few efficient ones that can still do both that would be nice. small <=30 Also is there a cap that java …

Member Avatar for NaturalSwtHeart
0
126
Member Avatar for JDCyrus

Good evening. I'm having issues related to subprocesses. What I'm trying to do is launch another program that has a command-line mode (Gnucap, in case it matters) as a child process from my Java program, then communicate with it by reading from its standard output and writing to its command …

Member Avatar for JDCyrus
0
202
Member Avatar for hao90

I suppose to write the records to a text file. However every time i re-log in and add a record.The previous record will be rewrite. >.<'' [CODE]public void addRecords(){ getInfo(); FileWriter fWriter = null; BufferedWriter writer = null; try { fWriter = new FileWriter("PassengerInfo.txt"); writer = new BufferedWriter(fWriter); writer.write(name); writer.write(";"); …

Member Avatar for hao90
0
179
Member Avatar for mrnutty

If I use ProcessBuilder or Runtime.exec function, in a JApplet, does that applet needs to be signed or is there a way to get around this? I need to communicate with a C++ executable using java JApplet.

Member Avatar for mrnutty
0
91
Member Avatar for HDRG

When I press the print Button, all it prints is a blank page. This is my code: [CODE] import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.io.*; import java.util.*; import java.awt.Color; import javax.swing.JFrame; import javax.swing.JPanel; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.print.PageFormat; import java.awt.print.Printable; import java.awt.print.PrinterException; import java.awt.print.PrinterJob; public class OptionWindow extends …

Member Avatar for Ezzaral
0
203
Member Avatar for brynFlew

Hello, thanks for your time. Jsp + javaBean will not run in tomcat on local host [url]http://localhost:8080/is/scannerForm/process.jsp[/url], when i run it in eclipse though my local tomcat it actually does work and i can step through the jsp page as-well as the .java pages and i can see where they …

Member Avatar for brynFlew
0
242
Member Avatar for Progr4mmer

im trying to make so one if has two outcomes ex: if(prime % chk == 0) prime++ (and) chk++; i want to know how to put (and) into code so it does both if prime % chk == 0 this is what i have for my prime finder [CODE]class Number …

Member Avatar for Akill10
0
140
Member Avatar for boshu

Hi all, I have been using a macro definition to copy a set of files to different locations and FTP servers. But copying seems quite slow so I want to compress the bundle using 7z and copy all into FTP as one single file. Can it be done using 7z? …

Member Avatar for Ezzaral
0
209
Member Avatar for rohit2

I am developing a tool using java Swing. I have used JFrame in it. Now I need to add a status bar into it so that I can easily identify line no in my jTextpane during typing in JtextPane. I am planing How can I do it? Can any one …

Member Avatar for Ezzaral
0
71
Member Avatar for sasi_88

hi, i have two combo boxes one for country and another for state both populated from data base dynamically. [CODE] <%@page import="java.sql.*"%> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>JSP Page</title> </head> <body> <select name="ctry"> <% String city=""; Statement pstm; ResultSet rs; try{ Class.forName("oracle.jdbc.driver.OracleDriver"); Connection connect =DriverManager.getConnection("jdbc:oracle:thin:@172.17.0.14:1521:develop","devuser","devuser"); pstm = connect.createStatement(); rs …

Member Avatar for brynFlew
0
205
Member Avatar for Anirudh.

Write a program to calculate the number of words,tokens,keywords,userdefined functions,system function for your java program. PS:you are supposed to make use of scanner class

Member Avatar for jon.kiparsky
0
103
Member Avatar for pmark019

How can I read multiple line inputs? I want to create a program that will ask a user for a program code and it will count all the reserve words used in the program. Every time I copy and paste a code for the input, it only reads the first …

Member Avatar for JamesCherrill
0
217
Member Avatar for wailoon88

[CODE]import java.awt.BorderLayout; import java.awt.Cursor; import java.awt.Font; import java.awt.GridBagConstraints; import java.awt.GridBagLayout; import java.awt.Insets; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.KeyEvent; import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent; import java.io.BufferedReader; import java.io.FileWriter; import java.io.InputStreamReader; import java.io.PrintWriter; import java.io.FileReader; import java.net.URL; import java.util.ArrayList; import java.util.HashMap; import java.util.HashSet; import java.util.LinkedHashSet; import java.util.regex.Matcher; import java.util.regex.Pattern; import java.io.FileReader; import java.util.*; …

Member Avatar for peter_budo
0
243
Member Avatar for javanerd21

please do inspect my code please, any error? in my net bean, its show the overall of the coding was red color. here is the code : [CODE] <%-- Document : updateAssignment Created on : Jan 18, 2011, 2:09:56 PM Author : Khalid Bin Dris 2008401558 --%> <%@page contentType="text/html" pageEncoding="UTF-8"%> …

0
129
Member Avatar for daswebmastri

Hello All! First post I believe. I've hit a small program in a project of mine. For my Senior Projects class, I am writing an accounting system for a small town in Java. I have an AWT List Box that hold the login names for all the employees. In my …

0
37

The End.