35,618 Topics
![]() | |
I am trying to do RMI Server-Client communication, but I get these exceptions when I try to run client: [CODE] java.security.AccessControlException: access denied (java.net.SocketPermission 127.0.0.1:1371 connect,resolve) at java.security.AccessControlContext.checkPermission(AccessControlContext.java:323) at java.security.AccessController.checkPermission(AccessController.java:546) at java.lang.SecurityManager.checkPermission(SecurityManager.java:532) at java.lang.SecurityManager.checkConnect(SecurityManager.java:1034) at java.net.Socket.connect(Socket.java:519) at java.net.Socket.connect(Socket.java:475) at java.net.Socket.<init>(Socket.java:372) at java.net.Socket.<init>(Socket.java:186) at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:22) at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:128) at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:595) at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:198) … | |
Hi,I am new to struts.i want to make a database connection with the help of a method call in some other class.I am not able to make the method for the database connectivity.Please if someone could help me. | |
this method checks if the array needs more slots , if it does it adds 5 more slots to the original array while keeping the same content and order of the content in the array how could u do this in a method that returns true and recieves add number … | |
I want to make marquee link in jpanel.I meet a problem at paintComponent(Graphic g){ g.drawString(text,x,y); } I want to replace JTextField at the "text".Who can I help me?whoever,thank in advance. | |
Hi can anybody tell me any link from where i can download a small jsp servelt project and deploy on my machine and get to know the code and understand it... i have read the basics of jsp servelts and need a sample project to understand a small project to … | |
please help me to Design and implement an application that reads an integer value representing a year from the user. The purpose of the program is to determine if the year is a leap year (and therefore has 29 days in February) in the Gregorian calender. A year is a … | |
please i really need the source code for spreadsheet development | |
HI Please tell me how to create a new pdf file by merging two different pdf files dynamically in java ... please help me out thanks in advance.. | |
Hai.. I want to write a JSP program. In that i want to do insert, delete, display records in a same program. I connected to the database. its working fine. The problem is it displays the record in the window twice.(becoz it has two records). I need that to display … | |
Hi, considering the tutorial given by peter_budo, if manager wants to assign a new course to a teacher, how would he be able to assign that ? I have designed the course page in which students can apply but how a manager can assign a teacher to that course ?? … | |
[CODE] tdate= new JTextField(); tdate.setBounds(200,25,134,20); java.util.Date date = new java.util.Date(); DateFormat df = DateFormat.getDateInstance(); String s = df.format(date); a = s.split(" "); a2 = a[1].split(","); //a[0]=oct , a[1]=27, , a[2]=2009 , a2[0]=27 , int mon=0; if(a[0].equalsIgnoreCase("jan")){ mon=01; }else if(a[0].equalsIgnoreCase("feb")){ mon=02; }else if(a[0].equalsIgnoreCase("mar")){ mon=03; }else if(a[0].equalsIgnoreCase("apr")){ mon=04; }else if(a[0].equalsIgnoreCase("may")){ mon=05; }else … | |
it checks if the array needs more slots , if it does it adds 5 more slots to the original array while keeping the same content and order of the array how could u do this in a method that returns true and recieves add number to put in the … | |
it checks if the array needs more slots , if it does it adds 5 more slots to the original array while keeping the same content and order of the array how could u do this in a method that returns true and recieves add number to put in the … | |
I have to write a program to censor a string. Whenever I run the program, it works fine the first time, then stops progressing the second time after entering the bad word. I don't get what the problem is. PLease help: java.util.Scanner; public class stringCensorRunner { /** * @param args … | |
Ok I have done the main section of my MergeSort program. I have to accept 10 integers and put them into a list. I having trouble with inserting user input into a list. Can anyone help? [CODE]import java.util.Scanner; import java.util.LinkedList; import java.util.*; public class mergesort{ public static class lp{ int … | |
i am trying to make a program that takes an object oriented approach to calculating the miles per gallon that your car gets. this is early in the process an i am aware that alot of stuff is missing. i am just trying to get it to work enough that … | |
Heya guys. I'm having a real problem with one of the examples on my java homework and was hoping one of you guys/gals could help. I need to write a program that allows the input of five numbers. Then the final output line(s) need to say which is the highest … | |
I have to write a program that diaplys a tic tac toe board with random x's and o's. I have having severe issues with the random part. I also dont know what to put for arguments in the JButton methods, but I think my issues are realted. Any and all … | |
Does someone have the solution for this? I know this isn't homework serice I have no idea where to start off....... I don't want a game of life applet, just simple codes that can compile and run. pm, post if you do. thanks so much. Can someone help me make … | |
I am thinking of developing a video conferencing system with multicast support....After some research I have decided to use java to develop this system with the aid of JMF. Has anyone developed a system like this, or could provide me with some useful links or information. Any help would be … | |
As I am new to MySQL, I dont know how to connect my jsp page to the MySQL Database. So please help me by giving some code on how to connect. I have downloaded driver for Java named as Connector/J. MySQL version is 5.0. In this line con = DriverManager.getConnection("jdbc:mysql://localhost/JSP_MYSQL?user=root&password=admin"); … | |
I am trying to create a 2d array list but it is giving me a compiler error pointing at the first line of the function. I don't really get what is causing the problem. I am pretty good in C++ but Java has some new rules that I am trying … | |
Hey guys I'm a bit confused here as I haven't edited a renderer before. My situation is that I have a custom object that I have created. It has a few jLabels, textboxes, and a combo box. And what I'm wanting to do it make it display on a jList. … | |
I have tomcat 6.0.18 running on my laptop. Tomcat is installed under my /home/xxx/bin directory. However, after I start tomcat, I'm unable to connect to tomcat through my browser but my eclipse is able to do so. I do not get any error message, the browser just keeps on trying. … | |
Hello I am new to java or well mainly everything. I am making a 'General Knowledge' game for a school project, I have a timer down and the questions. But I would like to know if there is a code I will be able to use to make points, for … | |
Hi.. I have 3 JPanels. (one) JPanel contains the scrollpane and the (two) JPanel contains a JButton. I am adding (one) + (two) into (combine) JPanel and then adding to the frame.Now I am really having a hard time align the scrollpane and the Jbutton. scroll pane is coming squeezed … | |
Good morning, all! I have a Java project that is complete, but it's not due for another week. I've been poking around trying to "spruce it up" a little with maybe a pull-down menu for one of the options. The examples I've found online all deal with web development. Will … | |
Hi Can anyone please tell me whether I can write a java program and start it in a way other that involves the command line? And not applets either. I want to start writting all of our company software in java, leaving behind c#. But the problem is I can … | |
hi to everybody. I'm just wonderin' if someone can help me with arrays. I am making a program of computing an average grade. I manage to execute the first requirements. The problem i have is how can i compute the grades that had been entered using a seperate method here … | |
Hello all I am using the request scope. I have parent window, which opens a child window on button click. Am using window.open That child window opened is request scope. Problem is, on that child window there is a button.. say I write "greg" in the textbox and click the … |
The End.