35,618 Topics
![]() | |
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 … | |
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 … | |
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 | |
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 … | |
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] | |
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 … | |
Hello, Could someone advice me for the best ide for GUI building in java? Thank you | |
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 … | |
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 … | |
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 … | |
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 … | |
![]() | 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 - … |
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 … | |
please single link list to made song list.. i dont know anything about that..please | |
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){ … | |
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 … | |
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 … | |
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(";"); … | |
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. | |
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 … | |
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 … | |
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 … | |
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? … | |
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 … | |
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 … | |
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 | |
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 … | |
[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.*; … | |
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"%> … | |
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 … |
The End.