32,199 Topics

Member Avatar for
Member Avatar for new_2_java

Hi all, I want to make an executable JAR file, and am facing some problems. Here's what I have tried: My program is in the following folder C:\extract\ExportTest.class I created a Manifest (Manifest.mf) file in the same directory and the content of it is: [code] Main-Class: ExportTest [/code] There's also …

Member Avatar for majestic0110
0
113
Member Avatar for shankarjadhav

Guys, How to check for java installation in windows, i want some code/pseudo code/algorithm.. Help me out.....

Member Avatar for Ezzaral
0
526
Member Avatar for jessxe02
Member Avatar for Ezzaral
0
72
Member Avatar for sourcerer

Can you please help me to write code on SRTF (Shortest Remaining Time First) on my O.S. subject! The requirements are: Enter No. of Jobs, Arrival Time and the Burst time! PLZ HELP ME!

Member Avatar for javaAddict
0
83
Member Avatar for paurik

i devlop a intranet application in java. can any one give me idea about how i show runnig process on remote machine using java programme. trhough wmi application i get information in vb,c# and c++ language. but i cannot find any solution in java.

Member Avatar for jwenting
0
71
Member Avatar for hidash_in

i want to move a single file from a folder. i tried my level best. but the all the files from the folder is moving. pls anyone is there to solve my problem.

Member Avatar for masijade
0
272
Member Avatar for shaikh_mshariq

Hi, I am new in programming snmp using java. I found snmp4j api for java to snmp programming but it does not contain any example to create agent and deploy it. Any one have solution for my problem. One more question using snmp can we deploy snmp agent remotely ? …

Member Avatar for shaikh_mshariq
0
94
Member Avatar for Ankita B

Hi, My java file is compilin fine but wont execute. its a simple hello application.i have set classpath as .;C:\Program Files\Apache Group\Tomcat 4.1\webapps\myfolder\WEB-INF\classes;(even if i remove the semicolon at end it doesnt work) and path as C:\j2sdk1.4.1_01\bin This is where my class and jdk are saved. i've tried all the …

Member Avatar for masijade
0
57
Member Avatar for ashkash

I have data in a list and each entry in the list is seperated as follows: XXXXX,XX/XX/XXXX Where the X represents a number. The data after the comma is supposed to be a date and could possibly be null. I need to take the first part of the data before …

Member Avatar for javaAddict
0
112
Member Avatar for mahendrazod

Hi friends, I am trying to develop the smiley installer which will install the smiley/emoticons on messengers installed on your system. Can anyone help me for below. 1) which language/technology should I use for it? 2) Give outline/algorithm ? Thanks in advance. Regards, mahendra

Member Avatar for Phaelax
0
59
Member Avatar for piers

right I am trying to practice with my programming taking my lectures advice and breaking the problem down into steps, then when I code, code a small amount, compile it check it works and then code the next bit. So I have an exercise I am trying out. Part of …

Member Avatar for Ezzaral
0
141
Member Avatar for new_2_java

Hi all, I want to run an OS command from my Java code. Basically I want to delete an unknown number of file from a particular directory from my Java code (in windows). But the way "del *.*" commnad works it prompts you whether you want to delete it or …

Member Avatar for new_2_java
0
124
Member Avatar for new_2_java

Hi all, I want to read a properties file from the same directory as my program, e.g. my program is in C:\WorkSpage\Myprogram.java and I have a properties file called index.properties how can I read the file, without specifying a path? I have tried the following but it doesn't read the …

Member Avatar for new_2_java
0
149
Member Avatar for babyfrostie
Member Avatar for soccerrm1

I've recently been trying to download jGrasp on my home computer because this is the program I am using at school to start to learn Java. I keep receiving the same error message when I try to compile a simple "hello world" program. "----jGRASP wedge2 error: command "javac" not found." …

Member Avatar for javaAddict
0
212
Member Avatar for maulee

hello friends,I want to use simple Java Beans in Struts Architecture..can we use simple beans with struts?

Member Avatar for maulee
0
50
Member Avatar for Alphard

import java.util.Scanner; public class TuringMachine { private static char[] array_in; private static int dir=0; private static int state=0; private static int i=0, i_clone; public static void main(String[] args) { Scanner read = new Scanner(System.in); do { System.out.print("Input Number: "); String str = read.next(); array_in = str.toCharArray(); if(!isNotValid()) halt(0); else break; …

0
67
Member Avatar for arkaprava

Since Input of ENTITY and of it's attribute is ok I am trying to op the value of the entity and it's attribute details so my modified code abt ENTITY is: package datamodel; import java.io.*; import java.util.*; public class ENTITY{ String entity_name; int no_of_attribute; int no_of_entity; attribute attr1; public ENTITY(String …

Member Avatar for PoovenM
0
175
Member Avatar for Anupkumar

Hi, I am planning to take Sun Certified Java Associate exam. Please give me some tips regarding how to start. Also if any of you have passed SCJA exam please provide some piece of advice. Thank you.

Member Avatar for jwenting
0
70
Member Avatar for fufu123

i have to write a program that has to subtract the purchase price from 100 and then determine the number of qtr,dms,nkls,pns.. when i run it my results are in decimal am not sure how to change it..any advice thanks alot.. import java.util.Scanner; public class Subtract { public static void …

Member Avatar for Ezzaral
0
231
Member Avatar for anakanya

I write text to a pdf template based on the client's spec. I can set all the font name, sizes, etc pdf.beginText(); pdf.setFontAndSize(arg1, arg2); pdf.showTextAligned(align, text, x,y,0F); pdf.endText(); The problem I have is this part [B]pdf.setCharacterSpacing(float a);[/B] When I look at the properties of the text on the pdf (by …

0
51
Member Avatar for csc385

1. For each of the following mathematical functions state the equivalent Big-Oh function, keeping in mind the general rules for using Big-Oh as described in the textbook and lecture. Assume very large values for n (i.e., as n approaches infinity). a. 100n2 + 87 b. 2n3 - 7n c. 70000000n2 …

Member Avatar for Ezzaral
0
55
Member Avatar for fatjoy25

import java.awt.*; import javax.swing.*; import java.awt.Color; import java.awt.event.*; import javax.swing.event.*; import java.io.File; import java.util.*; /* <Applet Code="MyPaint.class" width=400 height=400> </Applet> */ public class MyPaint extends JApplet { /* Declaring the variables.*/ JPanel panel; JPanel textAreaPanel; JTextArea drawTextArea; JScrollPane drawScrollPane; JLabel line, color, paint,kid,cil; JButton circle, rect, poly, ellipse; JComboBox cbLine, …

Member Avatar for Ezzaral
0
152
Member Avatar for kapiljainindore

Hi, I am new to javascript using Firefox. I don't know the basic principles of change in syntaxes if i have to make page compatible with FF. We've created javascript which is working fine with IE 6.0/7.0 and safari but it is not at all wokring with FF. Below is …

Member Avatar for Michael_Knight
0
96
Member Avatar for manushetty_2005

hi i need help regaurding the software development on java.we are trying to develop a administering software for internet usage...

Member Avatar for jwenting
0
88
Member Avatar for MxDev

is it possible to combine codes from VBScript and java to run together, which the VBScript could do some operation native to the operating system, while java couldn't........

Member Avatar for jwenting
0
52
Member Avatar for Shibani

I don't know if this is the proper forum for my question, but I'll give it a try. We have a few standalone Java applications sitting on a remote AIX box. These applications are listeners, so they start up and wait for events, i.e. they remain running, kind of like …

Member Avatar for Shibani
0
97
Member Avatar for hanifa

Hei guys, I have a c++ library of sorts. A user has written a Java Applet and wants to be able to call the C++ library functions. This is something my supervisor proposed. He suggested that Applet via a web service call (AXIS-C++) and using tomcat server , will call …

Member Avatar for schoolsoluction
0
120
Member Avatar for push

Respected sir/madam 1> how to call project folder in netbean? i am trying to run full online exam project at netbean. am getting exact display at tomcat. but am getting error at netbean.(like am keeping all jsp pages in subfolders like for exam, test...etc) 2> how can i make connection …

Member Avatar for javaAddict
0
65
Member Avatar for Rasjoe

import javax.swing.*; import java.awt.*; public class ImageObsApplet extends JApplet implements Runnable { DrawingPanel fDrawingPanel; Image fImg; int fImageNum=0; String fMessage="Loading.."; boolean fDoneLoadingImage=false; public void init() { Container content_pane=getContentPane(); fDrawingPanel=new DrawingPanel(this); content_pane.add(fDrawingPanel); fImg=getImage(getCodeBase(),"Sunset.jpg"); } public void start() { Thread thread=new Thread(this); thread.start(); } public void run() { int width=fImg.getWidth(this); if(width>=0) { …

Member Avatar for Rasjoe
0
115

The End.