Package import ncsa.j3d.*; does not exist
Hi, i'm working on a 3d game for my fyp and am haveing trouble importing the package import ncsa.j3d.*; and the package import ncsa.j3d.loaders.*; Net Beans keeps giving me an error saying package import ncsa.j3d.*; does not exist and package import ncsa.j3d.loaders; does not exist!!!
Any help would be terrific, I'm running under windows xp, amd mobile.
I'm having the same problem, have you figured it out yet?
Similar Messages
-
Package com.sun.j3d does not exist (Linux - Fedora Core 6)
I posted this on the 3d forums also, but it really has nothing to do with 3d but the classpath (I assume) so posting it here might work better.
Here's the thing.
I realize it's probably a classpath issue, but I don't know where to put the libraries. Compiling non-3d code works fine, which leads me to believe that running the j3d installer in the right place ought to put the libraries in the right place and let me use them. Clearly this is not the case.
Now I've tried to fiddle with the classpath, specifically I've put this into my .bash_profile:
CLASSPATH=.:$CLASSPATH:$HOME/Libraries/ext:$HOME/Libraries/i386
export CLASSPATH
And stored the jars in a libraries folder on my home directory
Odd thing: echo $CLASSPATH sends out empty, like CLASSPATH isn't even defined. How do I fix that? And if that's true, why is the regular javac working?Use
. .bash_profile
P.S. Where did you find the information to use
.bash_profile. I would expect you to set the
classpath in .bashrc, .profile or, to allow all to
get the same environment, in /etc/bashrc .I tried . .bash_profile and got this answer:
bash: CLASSPATH: command not foundAnd I don't recall how I decided to use .bash_profile, but .profile doesn't exist and I don't understand the syntax in .bashrc and it frightens me. -
Package com.sun.j3d does not exist (Linux - Fedora Core 6 - jdk 5.0)
Here's the thing.
I realize it's probably a classpath issue, but I don't know where to put the libraries. Compiling non-3d code works fine, which leads me to believe that running the j3d installer in the right place ought to put the libraries in the right place and let me use them. Clearly this is not the case.
Now I've tried to fiddle with the classpath, specifically I've put this into my .bash_profile:
CLASSPATH=.:$CLASSPATH:$HOME/Libraries/ext:$HOME/Libraries/i386
export CLASSPATH
And stored the jars in a libraries folder on my home directory
Odd thing: echo $CLASSPATH sends out empty, like CLASSPATH isn't even defined. How do I fix that? And if that's true, why is the regular javac working?Duplicate, answered here
http://forum.java.sun.com/thread.jspa?threadID=5197667 -
Sorry that I write again about this problem, but I can't manage with it.
When I'm trying to compile the program (Assigment.java) from book code appears an error:
D:\Java\Code\c03\Assignment.java:5: package com.bruceeckel.simpletest does not exist
import com.bruceeckel.simpletest.*;
It's not easy!! :(
I have SDk in c:\j2sdk1.4.2_05\
my projects are in d:\java
and the source code from the book: d:\java\code\
i copied the whole catalog com\bruceeckel\ into c:\j2sdk1.4.2_05\
I JCreator in options->JDK Profiles->j2sdk1.4.2_05(edit)->sources I added path c:\j2sdk1.4.2_05
And I don't know what else??
Please Help Me!!Edna's #1 rule for Java Newbies... Never
ever use an IDE
Now you have introduced a new variable to the problem.
Assuming com.bruceeckel is in some jar file called
bruce.jar (I like that), just add the the following
to you class path
<path to bruce.jar>/bruce.jarI take it that you are working through Bruce Eckel's Thinking in Java book ( or online )... I checked it out myself not to long ago, and following the instructions, found that I had to do somethings prior to using his code samples and exercises...
One is to download his source code at http://mindview.net/Books/TIJ/#SourceCode
Two, when you read the page, it tell you that you need to compile the downloaded source code to run the examples in the book... follow the directions given in the above link...
Once its all compiled, then it will be ready for use, well after you set the classpath as per instructions...
and leave the IDE alone for now, once you get a better understanding of Java, then you can take the time to learn how to use the IDE, but for now, it will probable just confuse you more... But that only my opinion...
Any way, download, compile, set the classpath and your on your way...
- MaxxDmg...
- ' He who never sleeps... ' -
Import app to svn when run app package weblogic.xml.process does not exist
Hi,
i am versioning my adf application to a server with subversion, the initial import of the application works ok, but when i tried to run it, it does not found all weblogic classes.....
Error(16,28): package weblogic.xml.process does not exist
Error(6,25): package weblogic.security does not exist
Error(8,34): package weblogic.security.services does not exist
Error(9,33): package weblogic.servlet.security does not exist
Error(39,36): cannot find class SimpleCallbackHandler
Error(41,26): cannot find variable Authentication
Error(42,6): cannot find variable ServletAuthentication
any ideas??
thanks.Hi,
i am versioning my adf application to a server with subversion, the initial import of the application works ok, but when i tried to run it, it does not found all weblogic classes.....
Error(16,28): package weblogic.xml.process does not exist
Error(6,25): package weblogic.security does not exist
Error(8,34): package weblogic.security.services does not exist
Error(9,33): package weblogic.servlet.security does not exist
Error(39,36): cannot find class SimpleCallbackHandler
Error(41,26): cannot find variable Authentication
Error(42,6): cannot find variable ServletAuthentication
any ideas??
thanks. -
Package javax.servlet.http does not exist
Hello All,
A few problems here
1. My classpath doesnt seem to work.:
.;"C:\Program Files\Apache Software Foundation\Tomcat 6.0\lib\servlet-api.jar"
2. As a result, i get many errors in my simple code, but there are still a few that are not related to javac not recognizing the servlet api.
I also tried setting the classpath at the command line (event hough its temporary)
set classpath="C:\Program Files\Apache Software Foundation\Tomcat 6.0\lib\servlet-api.jar"
but the servlet package is still not recognized
I have 2 classes, one to read the database connection details from a file and another class, my servlet.
Servlet Code:
import java.io.*;
import java.sql.*;
import java.util.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class CustomQuery extends HttpServlet
public void init() throws ServletException
EstablishDBConnetion.establishConnection();
public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
response.setContentType("text/html");
PrintWriter printer = new response.getWriter();
String title = "Result from custom query";
Statement stmt = EstablishDBConnetion.establishConnection.con.createStatement();
ResultSet rs = stmt.executeQuery("select customerID from customer");
while(rs.next())
printer.println("<html> <head><title>" + title + "</title><br><br><table border=\"0\"> <tr><td>" + rs.getString(1));
rs.close();
stmt.close();
EstablishDBConnetion.establishConnection.con.close();
Database connection code
import java.io.*;
import java.sql.*;
import java.util.StringTokenizer;
class EstablishDBConnetion
public static void establishConnection()
try
String dbDriver = "";
String dbUrl = "";
String dbName = "";
String dbUser = "";
String dbPassword = "";
String newLine = "";
BufferedReader fileRead = new BufferedReader(new FileReader("connection.txt"));
boolean readerStatus = fileRead.ready();
newLine = fileRead.readLine();
while (readerStatus)
StringTokenizer st = new StringTokenizer(newLine, ",");
while (st.hasMoreTokens())
dbDriver = st.nextToken();
dbUrl = st.nextToken();
dbName = st.nextToken();
dbUser = st.nextToken();
dbPassword = st.nextToken();
readerStatus = fileRead.ready();
Class.forName(dbDriver);
String url = dbUrl + dbName;
System.out.print(url);
Connection con = DriverManager.getConnection(url, dbUser, dbPassword);
catch (IOException e)
System.out.println("IO exception in establishConnection()");
e.printStackTrace();
catch (java.lang.Exception ex)
System.out.println("General exception in establishConnection()");
ex.printStackTrace();
public static void main(String[] args)
//EstablishDBConnetion edbc = new EstablishDBConnetion();
establishConnection();
}also, full error list below
CustomQuery.java:4: package javax.servlet does not exist
import javax.servlet.*;
^
CustomQuery.java:5: package javax.servlet.http does not exist
import javax.servlet.http.*;
^
CustomQuery.java:7: cannot find symbol
symbol: class HttpServlet
public class CustomQuery extends HttpServlet
^
CustomQuery.java:10: cannot find symbol
symbol : class ServletException
location: class CustomQuery
public void init() throws ServletException
^
CustomQuery.java:16: cannot find symbol
symbol : class HttpServletRequest
location: class CustomQuery
public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
^
CustomQuery.java:16: cannot find symbol
symbol : class HttpServletResponse
location: class CustomQuery
public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
^
CustomQuery.java:16: cannot find symbol
symbol : class ServletException
location: class CustomQuery
public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
^
CustomQuery.java:19: package response does not exist
PrintWriter printer = new response.getWriter();
^
CustomQuery.java:24: cannot find symbol
symbol : variable establishConnection
location: class EstablishDBConnetion
Statement stmt = EstablishDBConnetion.establishConnection.con.createStatement();
^
CustomQuery.java:39: cannot find symbol
symbol : variable establishConnection
location: class EstablishDBConnetion
EstablishDBConnetion.establishConnection.con.close();
^
10 errors
I appreciate your help
Message was edited by:
paulchwd
null
Message was edited by:
paulchwdThe library is in tomcat/common/lib, not in tomcat/lib.
-
Error msg "package org.apache.xmlrpc does not exist ... "
Hi everybody,
I am new to java. While creating build through cruise control Error Msg comes
BUILD FAILED
Ant Error Message: C:\Program Files\CruiseControl\projects\Myproject\build.xml:47: Compile failed; see the compiler error output for details.
C:\Program Files\CruiseControl\projects\Myproject\src\org\xtpl\admin\common\CallBack.java:9: package org.apache.xmlrpc does not exist
import org.apache.xmlrpc.*;
C:\Program Files\CruiseControl\projects\Myproject\src\org\xtpl\admin\common\CallBack.java:18: cannot find symbol
symbol : class XmlRpcClient
location: class org.xtpl.admin.common.CallBack
XmlRpcClient rpcClient = new XmlRpcClient();
Can anyone help me out!
Thanks,
Sunil Braroocheck your classpath.
-
Package org.jdesktop.layout does not exist?
I have created a project in Netbeans using the Java Project with Existing Ant Script and am trying to use the Netbeans GUI interface to develop my project, but even though I have created a folder that contains the swing-layout-1.0.3.jar and I no longer get the errors in my java file, I cannot built the project. I get the error: package org.jdesktop.layout does not exist.
In my java code, I can make an import statement, and Netbeans gives no errors. I can start typing "org. " and Netbeans suggests the classes, so clearly the org.jdesktop.layout does exist and is available to the code. So why am I getting this error, and how can I correct it?
Thanks in advance,
Chris Couloni could compile it properly by givin the path to the swing-layout-1.0.3.jar file in classpath. but i'm not able to run it now. i get the following error.
Exception in thread "main" java.lang.NoClassDefFoundError: CMSUI (wrong name: my
/cmsui/CMSUI)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:12
4)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
thanks -
Problem: package javax.servlet.jsp does not exist
I am a novice JSP programmer. My projects that use any javax.servlet classes are not seeing those at all. I am working with a group of folks using Java SE 1.5. (Note: I'm using Windows so the directory separator is "\")
What Used to work:
1. Nearly all my projects were working using Java version 1.6. These projects were developed as examples from Wrox and Apress books about JSP and Struts.
What has changed:
1. I un-installed the version 1.6 of JDK and JRE, as well as tomcat, netbeans, and all the associated libraries/jars.
2. I installed version 1.5 of JDK and JRE, as well as tomcat, netbeans, and all the associated libraries/jars.
3. I updated my JAVA_HOME, CATALINA_HOME, CLASSPATH, and PATH environmental variables. I made sure that the path to servlet-api.jar (in the tomcat common\lib) is included in the classpath.
What is wrong:
1. References to javax.servlet.* are not satisfied--they are flagged in the source code in NetBeans and I get compiler errors with any project containing those references. For example:
... package javax.servlet.jsp does not exist
import javax.servlet.jsp.*;
What I've found:
1. My CATALINA_HOME=C:\Java\Tomcat 5.5
2. My JAVA_HOME=C:\Java\jdk1.5.0_11
3. My CLASSPATH=.;C:\Program Files\QuickTime\QTSystem\QTJava.zip;%JAVA_HOME%\lib;%JAVA_HOME%\jre\lib;%JAVA_HOME%\lib\jsp-api.jar;%CATALINA_HOME%\common\lib\servlet-api.jar;C:\Java\logging-log4j-1.2.14\dist\lib\log4j-1.2.14.jar
4. My PATH=c:\wint\BIN;%JAVA_HOME%\bin;%JAVA_HOME%\jre\bin;%CATALINA_HOME%\bin;C:\MySQL\MySQL Server 5.0\bin;D:\MiKTeX 2.5\miktex\bin;C:\Perl\bin\;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\Microsoft SQL Server\80\Tools\Binn\;C:\SFU\Perl\bin\;C:\SFU\common\;C:\Program Files\Lahey-Fujitsu Fortran\v7.1\Bin;C:\Program Files\Lahey-Fujitsu Fortran\v7.1\Win32\Bin
What I need:
1. I need to have some reference to the servlet classes satisfied in my configuration. Any help is appreciated.
thanks
jondrOh. I got some over-the-shoulder debug help.
My error was in the classpath specification:
The path: %JAVA_HOME%\lib\jsp-api.jar
Should be: %CATALINA_HOME%\lib\jsp-api.jar
That contains the javax.servlet.jsp.*
Thimk.
Message was edited by: jon
jondr -
Error: package javax.servlet.http does not exist
Hi all,
How do I import javax.servlet?
package com.example.web;
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
public class BeerSelect extends HttpServlet {
public void doPost(HttpServletRequest request,
HttpServletResponse response)
throws IOException, ServletException {
response.setContentType("text/html");
PrintWriter out = response.getWrite();
out.println ("Beer Selection Advide<br>");
String c = request.getParameter("color");
out.println ("<br>Got beer color " + c);
}What does this error mean? The error message:
Compiling 1 source file to C:\Program Files\Apache Software Foundation\MyProjects\J2EE\build\classes
C:\Program Files\Apache Software Foundation\MyProjects\J2EE\src\com\example\web\BeerSelect.java:3:
package javax.servlet does not exist
import javax.servlet.*;
C:\Program Files\Apache Software Foundation\MyProjects\J2EE\src\com\example\web\BeerSelect.java:4:
package javax.servlet.http does not exist
import javax.servlet.http.*;
C:\Program Files\Apache Software Foundation\MyProjects\J2EE\src\com\example\web\BeerSelect.java:7:
cannot find symbol
symbol: class HttpServlet
public class BeerSelect extends HttpServlet {
C:\Program Files\Apache Software Foundation\MyProjects\J2EE\src\com\example\web\BeerSelect.java:8:
cannot find symbol
symbol : class HttpServletRequest
location: class com.example.web.BeerSelect
public void doPost(HttpServletRequest request,
C:\Program Files\Apache Software Foundation\MyProjects\J2EE\src\com\example\web\BeerSelect.java:9:
cannot find symbol
symbol : class HttpServletResponse
location: class com.example.web.BeerSelect
HttpServletResponse response)
C:\Program Files\Apache Software Foundation\MyProjects\J2EE\src\com\example\web\BeerSelect.java:10:
cannot find symbol
symbol : class ServletException
location: class com.example.web.BeerSelect
throws IOException, ServletException {
6 errors
BUILD FAILED (total time: 0 seconds)Thank you.Hi,
The file servlet-api.jar / servlet.jar is not available in your classpath.
To compile an Servlet you need the jar file to be in classpath.
The jar file can be found in your webserver / application server lib folder.
Regards,
Zack -
Package javax.xml.rpc does not exist
Hi, I'm sure this is probably a basic error, which one of you Java gurus can solve instantly. I haven't used Java since 2001 and my development machine didn't even have a JDK installed until this morning!
I'm trying to create a Java client for my web service, it's COM/ASP on IIS before you ask how I did it without using Java...
Basically, I've installed J2SE v1.4.2_02, and also WSDP jwsdp-1.3, and I'm using the tutorial example at:
http://java.sun.com/webservices/docs/1.3/tutorial/doc/JAXRPC5.html#wp79973 to create a dynamic proxy client. I assume this is what I need to do to access an existing web service?
I've copied and pasted the code into my editor and saved it as HelloClient.java. I will change the URL/URI, service name, port, etc. later on.
Now, at the cmd prompt...
D:\source\DCIS\sdk\java\dynamicproxy>javac HelloClient.java
HelloClient.java:4: package javax.xml.rpc does not exist
import javax.xml.rpc.Service;
^
HelloClient.java:5: package javax.xml.rpc does not exist
import javax.xml.rpc.JAXRPCException;
^
HelloClient.java:6: package javax.xml.namespace does not exist
import javax.xml.namespace.QName;
^
HelloClient.java:7: package javax.xml.rpc does not exist
import javax.xml.rpc.ServiceFactory;
I expect this is something to do with environment variables:
PATH=C:\WINNT\system32;
C:\WINNT;C:\WINNT\System32\Wbem;
C:\Program Files\Microsoft SDK\Bin\.;
C:\Program Files\Microsoft SDK\Bin\WinNT\.;
d:\j2sdk1.4.2_02\bin\;
d:\jwsdp-1.3\jwsdp-shared\bin\;
d:\jwsdp-1.3\apache-ant\bin\
CLASSPATH=.;
Is there something I need to set in my classpath for this?
I know the tutorial suggests using Ant to build the example, but as far as I can tell that uses Tomcat, and I only want to build a client application! There must be a way to get around this...
TIA for any help you give me!Hi,
I am getting this error message when i try to create the webservice client.
D:\Sun\AppServer\apps\dynamic-proxy>javac -classpath build -d build MathClient.java
MathClient.java:4: package javax.xml.rpc does not exist
import javax.xml.rpc.Service;
^
MathClient.java:5: package javax.xml.rpc does not exist
import javax.xml.rpc.JAXRPCException;
^
MathClient.java:7: package javax.xml.rpc does not exist
import javax.xml.rpc.ServiceFactory;
^
MathClient.java:8: cannot find symbol
symbol : class FirstIF
location: package dynamicproxy
import dynamicproxy.FirstIF;
^
MathClient.java:23: cannot find symbol
symbol : class ServiceFactory
location: class dynamicproxy.MathClient
ServiceFactory serviceFactory = ServiceFactory.newInstance();
^
MathClient.java:23: cannot find symbol
symbol : variable ServiceFactory
location: class dynamicproxy.MathClient
ServiceFactory serviceFactory = ServiceFactory.newInstance();
^
MathClient.java:26: cannot find symbol
symbol : class Service
location: class dynamicproxy.MathClient
Service mathService = serviceFactory.createService(url,
^
7 errors
After looking at your response to add the classpath to this jar file.
jaxrpc-spi.jar.
But when i looked into my folder found that missing this jar file.
where i can i download this file?
I would like to know the error message that i have got is because of this missing file?
Please guide me on this issue.
Thanks! -
Package javax.microedition.midlet does not exist
Hi:
I am trying to run the Currency Converter MIDlet. I am using SUnONE4. I have got all the updates for the SUN ONE. When I compile the Converter directory.. i get the following errors.. which indicate that it can't find the javax.micoredition..packages.
converter/ConverterMIDlet.java [11:1] package javax.microedition.midlet does not exist
import javax.microedition.midlet.*;
^
converter/ConverterMIDlet.java [12:1] package javax.microedition.lcdui does not exist
import javax.microedition.lcdui.*;
^
converter/ConverterMIDlet.java [13:1] package javax.microedition.rms does not exist
import javax.microedition.rms.*;
I havem't downloaded the J2ME since i presume that i don't need it since i have updated SunONe. There inside the SUNone i can see under the Device Emulator registory the J2ME wireless toolkit.
Can anyon ehelp please.make sure you have the microedition classes are in your classpath
--Senthil -
Package com.bruceeckel.simpletest does not exist
I have a problem with source book code. Exactly with c03\Assignment.java. When I'm try to compile the programm there is an error: D:\Java\Code\c03\Assignment.java:5: package com.bruceeckel.simpletest does not exist
import com.bruceeckel.simpletest.*;
I don't know how can I fix this.Add the com.bruceeckel.simpletest.* package or the jar file containing the classes you need to your classpath.
Javapedia: Classpath
Setting the class path (Windows)
How Classes are Found -
Package javax.xml.messaging does not exist
Hi,
I have installed the Web Services Developer Pack (Version 1.1), and added the jaxm-api, jaxm-runtime, saaj-ri, and saaj-api jars to my classpath. I also added C:\jwsdp-1.1\bin to my path, and copied the jar files from C:\jwsdp-1.1\jaxp-1.2.2\lib\endorsed to the \jre\lib\endorsed folder within my java home directory as specified.
However, I get the following error when trying to compile my program:
"package javax.xml.messaging does not exist"
import javax.xml.messaging.*;
import javax.xml.soap.*;
public class CAServlet
extends JAXMServlet
implements ReqRespListener {
Do you have any ideas on why this may be happening? Any help would be greatly appreciated.
Thanks,
ChrisHi,
The jar file jaxm-api.jar contains the package javax.xml.messaging.
Make sure you have correctly set it to your classapth.
-Amol -
Build error :package com.sun.javadoc does not exist
Question from a Turing machine expert who is new to Java.
Trying to run a sample program from Richardson's book "Java JDK 5 Edition" Chapter 1.
In Netbeans 5.5 receive build error :package com.sun.javadoc does not exist
for "import com.sun.javadoc.*;"
Believe missing classes are in tools.jar in C:\Sun\SDKee5SDK\jdk\lib
How do I define this to Netbeans and/or JDK?
Using java_ee_sdk-5_01
and netbeans-5_5-windows downloads.
Platform is XP.
Netbeans has been updated to date.
Appreciate.sony_tj wrote:
D:\Xyz.java:22: package com.sun.javadoc does not exist
import com.sun.javadoc.*;After getting this error, I have set my classpath to C:\Program Files\Java\jdk1.5.0_03\lib\tools.jar. But still the error persists. Could anyone please tell me how do I solve this problem.You have failed in setting your classpath in that case.
Maybe you are looking for
-
when i attempt to download a 'free' app from the app store error message comes up: "Account Not in this store- your account is not valid for use in the US store. You must switch to the Guyanese store before purchasing."
-
MAC OS 10.4 CRASHES AFTER HARD DRIVE UPGRADE
I just bought a HITACHI hard drive for my iBook G4 1.33ghz. I installed the hard drive with no problems. After installing MAC OS X 10.4.2 & upgrading to 10.4.11, the OS keeps crashing, Ive done a APPLE HARDWARE TEST everything fine, Ive used disk uti
-
I'm trying to generate an XML so that it shows the Entity References. I need help figuring what I'm doing wrong. Complete source is included below. When I run the included source, I get: <?xml version="1.0"encoding="UTF-8"?> <xmlTest> <polish text1="
-
How to create database link between oracle and SQL Server
Hello Everyone, Here i have Oracle Database 9i and SQL Server 2005 databases. I have some tables in sql server db and i want to access from Oracle. How to create a database link between these two servers Thanks,
-
BEA WLS 9.0 java.lang.NoClassDefFoundError: utils/ImportPrivateKey
Hi I'm newbie on this forum and on BEA WebLogic 9.0. I have to import my certificate in the keystore in order to setup SSL connection. I'm trying to use the java utils provided by BEA WL, but I have this error: bash-3.00# java utils.ImportPrivateKey