35,618 Topics

Member Avatar for
Member Avatar for charliesindex

I decided to develop a java applet to transfer files to a ftp server. I have no java experience but using stuff from the web and using NetBeans IDE for development, I came resonably close. Here is the code I used. /* * To change this template, choose Tools | …

0
49
Member Avatar for ganesh.guddu

Hi all, I have two Java Classes as follows : [CODE]public class A { public int a =5; }[/CODE] and -- [CODE]public class B { public static void main(String[] args) { System.out.println(new A().a); } } [/CODE] Now i want to generate a log file (when the execution of main() method …

Member Avatar for ganesh.guddu
0
80
Member Avatar for rajshree13

I want JSP code to expire the username and password in JSP. Please help in this regards It's Urgent

Member Avatar for peter_budo
-1
84
Member Avatar for nomemory

Hello, I am a python newbie and I am trying to accommodate to the basics. What's the python equivalent for the following Java snippet ? [B]Java:[/B] [CODE]public class Main { public static void main(String args[]){ int a,b,c; a= (int) (Math.random()*100); c=0; while((b=(int)(Math.random()*100))!=a){ c+=1; } System.out.println(c); } }[/CODE] I was trying …

Member Avatar for woooee
1
217
Member Avatar for xilamei

hi... i do really need your help guys... its about mobile application in netbeans IDE 6.7.1 im a total newbie here... so, im asking for your help... so here it goes, i am planning to create a mobile application with the use of netbeans IDE 6.7.1, and the outcome would …

Member Avatar for Salem
-1
142
Member Avatar for MxDev

Hi guys, Visual studio contains alot of controls which facilitate the development of application using C#. Is there any workaround to use this controls in Netbeans IDE or any plugins to make Netbeans as reach as Visual studio in controls. Thanks in advance

Member Avatar for peter_budo
0
105
Member Avatar for jrosh

I created jar file and it can be run well through comand prompt.. (using java -jar <file name>) How can I make it run by clicking the the .jar file ?????

Member Avatar for peter_budo
0
83
Member Avatar for ceyesuma

[i] Topic The topic of this question is: school_http-Netbeans ex. Of MVC model 2 db connections [/i] [icode] Hello and Thank you in advance for any assistance. [/icode] ……………………………………………………………………………………………………………………………………………………………………………………………… System: System info: Netbeans6.7.1,jsf1.2,MySQL ……………………………………………………………………………………………………………………………………………………………………………………………… Purpose: The purpose of this post is: Understand why attached program compiles but after the initial …

0
87
Member Avatar for moyphus

[B]Is it possible calling struts from EJB (or) not[/B]. please I need an example for this...just calling Struts from EJB part is enough. How to call a DAO class from either Struts (or) EJB...I need an example for this too...Calling part and other configuration such as web.xml part

0
66
Member Avatar for feoperro

Hi, I was wondering if there's a framework that can help me with the following: I currently have regex checks on html input fields that work 100%, I would like to also have a check to the database for duplicate records so that if the user enters an ID that …

Member Avatar for peter_budo
0
119
Member Avatar for cissi

Hi! When I click on h:outputLink after using the browsers back button I get a viewExpiredException. Som info of my setting in web.xml: org.apache.myfaces.SERIALIZE_STATE_IN_SESSION true javax.faces.STATE_SAVING_METHOD client How can I fix this or go around the problem. I am using jsf 1.2.

0
102
Member Avatar for narayanc1

Hai, I am developing an application to send and receive data via bluetooth for Symbian mobiles.We have a scanner with built in linux and some C++ program.A C++ Dll is given to communicate by using Windows Mobile 5 and Windows Mobile 6.When we worked using .Net application when the Serial …

Member Avatar for narayanc1
0
118
Member Avatar for jrosh

I created a jar file using cmd prompt. when i run it using : jar cvfm <filename>.jar manifest.txt *.class gives the error: java.io.IOException : invalid header field.... Please help me to solve this...

Member Avatar for jrosh
0
144
Member Avatar for jrosh

I managed to create a <filename>.bat file using a jar creator . It also creates <filename>.jar file but when i click .bat file it says unsupportedClassVersionError: bad version number in .class file .jar file says could not find the main class... how can I overcome this???

Member Avatar for masijade
0
109
Member Avatar for ishlux

Hi all, I have downloaded mysql, please tell me how to create database, and tables in mysql, .. just forward me the queries for how to create table, database, and how to make database connection in my jsp code...........reply me soon pls.......... give me example code,,,, i wil try to …

Member Avatar for masijade
0
68
Member Avatar for Nithya.G

Iam getting an equation as input in a string example: 3x^2+4x^2=0 I have to split the above equation and i have store numbers, symbols, and operators and power number separately ... am using java language... Plz Help me to solve... Thanx in Advance Nithya

Member Avatar for Nithya.G
0
84
Member Avatar for Rurik16

I'm creating a game where the goal is to roll two dice and if you get a 7 or 11 you win 10 points, otherwise you lose 5. You start with 100 points. I have everything set up so far but I don't know how to keep the program going …

Member Avatar for Rurik16
0
174
Member Avatar for KimJack

Hi all, I have a quick question. Is this a proper way of using blackbox testing to test the stringTokenizer class? If not, would you provide a proper example that displays the pass or fail. [code] string = "cat, dog"; StringTokenizer token = new StringTokenizer(string, ","); if (token.countTokens() == 2) …

Member Avatar for BestJewSinceJC
0
122
Member Avatar for TheWhite

I have 1 package that manages the main JFrame of my application. This JFrame needs to access an image (which is a resource) of another package. I was able to get it to work using: [CODE=JAVA]new ImageIcon(getClass().getResource("../"+packageName+"/icon.jpg"));[/CODE] But this does not work when using a runnable jar (getClass().getResource("../"+packageName+"/icon.jpg")) returns null). …

Member Avatar for majestic0110
0
118
Member Avatar for cssatheesh

Hi, Im working on a POC in velocity. Want to know whether using velocity can we populate a template based on records in a JDBC ResultSet instance?If so kindly provide the link that has document or example. Typically a resultset will be put in the VelocityContext. In vm file we …

0
48
Member Avatar for nope3d

I am having a problem in this program....can anybody help me create a BufferedReader out of this maze problem...then i have to create a text document entitled with maze.txt... well here is my program [code] import java.io.*; import java.util.*; public class Amazing{ public static void main(String[]args){ Scanner console=new Scanner(System.in); FileWriter …

Member Avatar for nope3d
0
127
Member Avatar for iclaat
Member Avatar for eamo27
0
68
Member Avatar for smitamutha

Hi All, I want to run a java command thru java program. Can any one tell me how can i do it. Thanks , Smita

Member Avatar for marutiskutre
0
154
Member Avatar for jrosh
Member Avatar for majestic0110
0
122
Member Avatar for beanboy

hi helper,.... i'm trying to implement meta search engine(java, jsp) for a website. trying to use carrot2 for organising search results and using yahoo search API. pls give me an idea of implementing a meta search engine.i googled but didnot find any material in net. thx beanboy.

0
81
Member Avatar for nicolek808

The program requires an integer input from a user at the command args and prints out the numbers backward. I have this so far, however, it only prints 1 number, which is the number entered into args. [code=java] public class KashiwabaraNicole7 { /******************************************************************************* * Initializes program * @ param commandlineArguments …

Member Avatar for nicolek808
0
123
Member Avatar for shahravi88

Write a Java Program that prompts the user to enter his/her first name and last name, then displays a message to welcome the user into the class CIS 226. If the user hits Cancel on either first or last name, show the error message: [code] import javax.swing.JOptionPane; public class Assign2 …

Member Avatar for javaAddict
0
116
Member Avatar for kahaj

I'm attempting to learn Java. I'm finding it to be frustrating and quite foreign from most other languages. I have something here typed exactly as the book has it. According to the book, it should be working, but it's not. Any tips would be SO great! I really feel like …

Member Avatar for javaAddict
0
121
Member Avatar for jrosh

How do I add a picture as a background to my Jpanel??? please let me knw the easiest way...

Member Avatar for peter_budo
0
49
Member Avatar for jrosh
Member Avatar for msi_333
0
114

The End.