.java file extension
I am a student at UHD in Houston and I am trying to get started by compiling simple programs at the command prompt for a course I'm taking. I have just installed Java v 5.0 and everything seemed to go ok. However, when I save a simple program with the .java extension on it, Windows is still seeing it as a notepad file or a MSWord file. It shows it's icon as such.
When I go to compile the program at the command prompt, it tells me that it cannot read my file.
ie. error: cannot read: welcome1.java
Please help. I don't want to have to do all my programs in the school computer lab! LOL! I've tried the program on the school lab computer and it works fine. Did something go wrong with my installation? Please help.
The Notepad program is adding ".txt" to your file, so it ends up as myFirst.java.txt and is invalid.
If you can't see that ".txt", you are hiding file exttensions. Unhide them in Folder Options | View
Either use Save As or Doublequote the file name in Notepad to stop the addition.
Similar Messages
-
Java files open in SQL Developer instead of JDeveloper
JDEV 10.1.3
Windows XP
When I double click a java file, it opens in SQL Developer instead of JDeveloper.
When I right click a java file, and select 'Open With'->jdeveloper, the java file always opens in SQL Developer instead of JDeveloper.
I've tried browsing and choosing all the different executables: jdevw.exe, jdev.exe, jdeveloper.exe. No luck on any of them.
Any help here? Thanks!Thanks, but that didn't work. I noticed that the "open" action for java file extension is, in fact, set to use the jdeveloper.exe (I also tried jdev.exe and jdevW.exe).
Note: even if I run the jdeveloper.exe on the command line, with a java file as the argument, the java file still opens in SQL Developer, if it is running. (Otherwise it uses JDeveloper)
It's as if JDeveloper and SQL Developer are somehow coupled in the opening of files. -
What is going on here? .txt file extension
I apologize for asking this question, but at the risk of sounding completely fried, here goes...
I've saved my program in Notepad with the .java file extension, but when I run dir command in DOS, the file ends with the .txt file extension (i.e. HelloWorld.java.txt). Could someone give me a clue how to keep Notepad from automatically ending my program with this .txt file extension.? I've have not encountered this problem before.
ThanksThanks for your help.
I figured out that I didn't have the .java file extension defined in Windows. Because Notepad didn't recognize .java as a valid file type, it would automatically assign the .txt after my program files.
To fix this...
1.) Start Explorer
2.) Select the View...Options... file menu
3.) Click on the File Types tab
4.) Click on the New Type... button
5.) Enter the following in the Description of type: edit box: Java Files
6.) Enter the following in the Associated extension edit box: .java
7.) Click OK
8.) Click OK
Thanks for your responses.
CJ -
We get the followign when we navigate to the 'Peoplesoft' domain and then
add a servlet and attempt to "persist".
everything else seems to work fine.
By navigating to the peolesoft domain, we open the default server
and use "edit other domain" to pull up the console. then navigate to portal ->
edit descriptors.
OS is an Win2k Server.
Thanks in advance for any help.
---- Error starts below ------
java.io.FileNotFoundException: f:\bea\weblogic\wlserver6.1\config\peoplesoft\applications
(Access is denied)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.(FileInputStream.java:64)
at java.io.FileInputStream.(FileInputStream.java:95)
at weblogic.utils.jars.RandomAccessJarFile.copyJarToJarDir(RandomAccessJarFile.java:272)
at weblogic.utils.jars.RandomAccessJarFile.(RandomAccessJarFile.java:144)
at weblogic.servlet.internal.dd.DescriptorLoader.persist(DescriptorLoader.java:598)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:636)
at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:621)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209)
at $Proxy79.persist(Unknown Source)
at weblogic.management.console.actions.mbean.DoPersistTopLevelDescriptorAction.perform(DoPersistTopLevelDescriptorAction.java:78)
at weblogic.management.console.actions.internal.ActionServlet.doAction(ActionServlet.java:171)
at weblogic.management.console.actions.internal.ActionServlet.doGet(ActionServlet.java:91)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2495)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2204)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
--------------- nested within: ------------------
weblogic.management.console.actions.ActionException: An error occurred while attempting
to persist 'WebDescriptor-5' - with nested exception:
[java.io.FileNotFoundException: f:\bea\weblogic\wlserver6.1\config\peoplesoft\applications
(Access is denied)]
at weblogic.management.console.actions.ErrorAction.(ErrorAction.java:68)
at weblogic.management.console.actions.mbean.DoPersistTopLevelDescriptorAction.perform(DoPersistTopLevelDescriptorAction.java:80)
at weblogic.management.console.actions.internal.ActionServlet.doAction(ActionServlet.java:171)
at weblogic.management.console.actions.internal.ActionServlet.doGet(ActionServlet.java:91)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2495)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2204)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
Current Date
Fri Jun 20 14:16:52 CDT 2003
Console Release Build
Console Build
Server Release Build
6.1.2.0
Server Build
WebLogic Server 6.1 SP2 12/18/2001 11:13:46 #154529
All Server Product Versions
WebLogic Server 6.1 SP2 12/18/2001 11:13:46 #154529
WebLogic XML Module 6.1 SP2 12/18/2001 11:28:02 #154529
Server System Properties
awt.toolkit = sun.awt.windows.WToolkit bea.home = F:\bea\weblogic file.encoding
= Cp1252 file.encoding.pkg = sun.io file.separator = \ java.awt.fonts = java.awt.graphicsenv
= sun.awt.Win32GraphicsEnvironment java.awt.printerjob = sun.awt.windows.WPrinterJob
java.class.path = .;.\lib\weblogic_sp.jar;.\lib\weblogic.jar java.class.version
= 47.0 java.ext.dirs = F:\bea\weblogic\jdk131\jre\lib\ext java.home = F:\bea\weblogic\jdk131\jre
java.io.tmpdir = C:\DOCUME~1\lackp\LOCALS~1\Temp\ java.library.path = F:\bea\weblogic\jdk131\bin;.;C:\WINNT\System32;C:\WINNT;.\bin;f:\oracle\ora92\bin;C:\Program
Files\Oracle\jre\1.3.1\bin;C:\Program Files\Oracle\jre\1.1.8\bin;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Program
Files\Dell\OpenManage\Array Manager;C:\Program Files\Dell\OpenManage\oma\bin;C:\Program
Files\Dell\OpenManage\OMSA\bin;C:\Program Files\Dell\OpenManage\LU\bin;C:\Program
Files\Dell\OpenManage\RAC\MN;C:\Program Files\Dell\OpenManage\oldiags\bin;C:\PROGRA~1\CA\Common\SCANEN~1;C:\PROGRA~1\CA\eTrust\INOCUL~1;f:\bea\tuxedo\bin
java.naming.factory.initial = weblogic.jndi.WLInitialContextFactory java.naming.factory.url.pkgs
= weblogic.jndi.factories java.protocol.handler.pkgs = weblogic.utils|weblogic.utils|weblogic.net|weblogic.management|weblogic.net|weblogic.net
java.runtime.name = Java(TM) 2 Runtime Environment, Standard Edition java.runtime.version
= 1.3.1-b24 java.security.policy = =F:\bea\weblogic\wlserver6.1/lib/weblogic.policy
java.specification.name = Java Platform API Specification java.specification.vendor
= Sun Microsystems Inc. java.specification.version = 1.3 java.vendor = Sun Microsystems
Inc. java.vendor.url = http://java.sun.com/ java.vendor.url.bug = http://java.sun.com/cgi-bin/bugreport.cgi
java.version = 1.3.1 java.vm.info = mixed mode java.vm.name = Java HotSpot(TM)
Client VM java.vm.specification.name = Java Virtual Machine Specification java.vm.specification.vendor
= Sun Microsystems Inc. java.vm.specification.version = 1.0 java.vm.vendor = Sun
Microsystems Inc. java.vm.version = 1.3.1-b24 javax.rmi.CORBA.PortableRemoteObjectClass
= weblogic.iiop.PortableRemoteObjectDelegateImpl javax.rmi.CORBA.UtilClass = weblogic.iiop.UtilDelegateImpl
javax.xml.parsers.DocumentBuilderFactory = weblogic.xml.jaxp.RegistryDocumentBuilderFactory
javax.xml.parsers.SAXParserFactory = weblogic.xml.jaxp.RegistrySAXParserFactory
javax.xml.transform.TransformerFactory = weblogic.xml.jaxp.RegistrySAXTransformerFactory
jmx.implementation.name = JMX RI jmx.implementation.vendor = Sun Microsystems
jmx.implementation.version = 1.0 jmx.specification.name = Java Management Extensions
jmx.specification.vendor = Sun Microsystems jmx.specification.version = 1.0 Final
Release line.separator = org.xml.sax.driver = weblogic.apache.xerces.parsers.SAXParser
os.arch = x86 os.name = Windows 2000 os.version = 5.0 path.separator = ; sun.boot.class.path
= F:\bea\weblogic\jdk131\jre\lib\rt.jar;F:\bea\weblogic\jdk131\jre\lib\i18n.jar;F:\bea\weblogic\jdk131\jre\lib\sunrsasign.jar;F:\bea\weblogic\jdk131\jre\classes
sun.boot.library.path = F:\bea\weblogic\jdk131\jre\bin sun.cpu.endian = little
sun.cpu.isalist = pentium i486 i386 sun.io.unicode.encoding = UnicodeLittle user.dir
= F:\bea\weblogic\wlserver6.1 user.home = C:\Documents and Settings\lackp user.language
= en user.name = lackp user.region = US user.timezone = America/Chicago weblogic.Domain
= psglisadm weblogic.Name = psglissvr weblogic.ProductionModeEnabled = true weblogic.security.jaas.Configuration
= weblogic.security.internal.ServerConfig weblogic.security.jaas.Policy = ./lib/Server.policy
Request Info
Protocol: HTTP/1.1
ServerName: 127.0.0.1
ServerPort: 7500
Secure: false
ContextPath: /console
ServletPath: /common/error.jsp
QueryString: MBean=psglisadm%3AApplication%3DPORTAL%2CLocation%3Dpsglissvr%2CName%3DWebDescriptor-5%2CType%3DWebDescriptor%2CWebAppComponent%3DPORTAL
PathInfo: null
PathTranslated: null
RequestURI: /console/common/error.jsp
AuthType: Basic
ContentType: null
CharacterEncoding: null
Locale: en_US
Method: GET
Session: weblogic.servlet.internal.session.MemorySessionData@92f6
RequestedSessionId: 2zcy822KqSaJQpWXGNL1nqUNyhuydJL83nKXQlVvxmElLHcP77pb!157731749!-1620044925!7500!9500!1056136434604
RequestedSessionIdFromCookie: true
RequestedSessionIdFromURL: false
UserPrincipal: system
RemoteUser: system
RemoteAddr: 127.0.0.1
RemoteHost: 127.0.0.1
Parameters
MBean = psglisadm:Application=PORTAL,Location=psglissvr,Name=WebDescriptor-5,Type=WebDescriptor,WebAppComponent=PORTAL
Attributes
wlinternalaction = weblogic.management.console.actions.internal.InternalActionContext@2229ca
java.util.Locale = en_US weblogic.auth.status = 0 weblogic.httpd.user = system
weblogic.management.console.catalog.Catalog = weblogic.management.console.catalog.XmlCatalog@34fa3c
weblogic.management.console.helpers.BrowserHelper = User-Agent: Mozilla/4.0 (compatible;
MSIE 6.0; Windows NT 5.0) IE: true Netscape: false Supported: true JavscriptHrefs:
false TableCellClick: true DocumentReloadedOnResize: false DropdownStretchable:
true CellSpacingBlank: false EmptyCellBlank: false ImgOnclickSupported: true TableBorderFancy:
true PartialToWideTables: false DisabledControlSupported: true weblogic.management.console.helpers.DebugHelper
= weblogic.management.console.helpers.DebugHelper@27a485 weblogic.management.console.helpers.UnitsHelper
= weblogic.management.console.helpers.UnitsHelper@46fe47 weblogic.management.console.helpers.UrlHelper
= weblogic.management.console.helpers.UrlHelper@65ce3c
Headers
Accept = image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */* Accept-Encoding
= gzip, deflate Accept-Language = en-us Authorization = Basic c3lzdGVtOmdsaXN0ZWFtMDM=
Connection = Keep-Alive Cookie = JSESSIONID=2zcy822KqSaJQpWXGNL1nqUNyhuydJL83nKXQlVvxmElLHcP77pb!157731749!-1620044925!7500!9500
Host = 127.0.0.1:7500 Referer = http://127.0.0.1:7500/console/actions/mbean/MBeanDescriptorFramesetAction?isNew=false&sidebarFrameId=wl_console_frame_1056136434809&frameId=wl_console_frame_1056136434850&MBean=peoplesoft%3AApplication%3DPORTAL%2CName%3DPORTAL%2CType%3DWebAppComponent&bodyFrameId=wl_console_frame_1056136434811
User-Agent = Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)
BrowserInfo
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)
IE: true
Netscape: false
Supported: true
JavscriptHrefs: false
TableCellClick: true
DocumentReloadedOnResize: false
DropdownStretchable: true
CellSpacingBlank: false
EmptyCellBlank: false
ImgOnclickSupported: true
TableBorderFancy: true
PartialToWideTables: false
DisabledControlSupported: trueEditing other domains is a scenario fraught with peril, which is why it was
deprecated and removed from the console. It looks to me that the error
message sums up the problem, ther eis no applications directory in the
peoplesoft domain? Have you tried creating that directory from the file
system?
cheers
mbg
"Dan" <[email protected]> wrote in message
news:[email protected]...
>
We get the followign when we navigate to the 'Peoplesoft' domain and then
add a servlet and attempt to "persist".
everything else seems to work fine.
By navigating to the peolesoft domain, we open the default server
and use "edit other domain" to pull up the console. then navigate toportal ->
edit descriptors.
OS is an Win2k Server.
Thanks in advance for any help.
---- Error starts below ------
java.io.FileNotFoundException:f:\bea\weblogic\wlserver6.1\config\peoplesoft\applications
(Access is denied)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.(FileInputStream.java:64)
at java.io.FileInputStream.(FileInputStream.java:95)
atweblogic.utils.jars.RandomAccessJarFile.copyJarToJarDir(RandomAccessJarFile.
java:272)
at weblogic.utils.jars.RandomAccessJarFile.(RandomAccessJarFile.java:144)
atweblogic.servlet.internal.dd.DescriptorLoader.persist(DescriptorLoader.java:
598)
at java.lang.reflect.Method.invoke(Native Method)
atweblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl
.java:636)
atweblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:6
21)
atcom.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
atcom.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209)
at $Proxy79.persist(Unknown Source)
atweblogic.management.console.actions.mbean.DoPersistTopLevelDescriptorAction.
perform(DoPersistTopLevelDescriptorAction.java:78)
atweblogic.management.console.actions.internal.ActionServlet.doAction(ActionSe
rvlet.java:171)
atweblogic.management.console.actions.internal.ActionServlet.doGet(ActionServl
et.java:91)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:265)
atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:200)
atweblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
ntext.java:2495)
atweblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
:2204)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
--------------- nested within: ------------------
weblogic.management.console.actions.ActionException: An error occurredwhile attempting
to persist 'WebDescriptor-5' - with nested exception:
[java.io.FileNotFoundException:f:\bea\weblogic\wlserver6.1\config\peoplesoft\applications
(Access is denied)]
at weblogic.management.console.actions.ErrorAction.(ErrorAction.java:68)
atweblogic.management.console.actions.mbean.DoPersistTopLevelDescriptorAction.
perform(DoPersistTopLevelDescriptorAction.java:80)
atweblogic.management.console.actions.internal.ActionServlet.doAction(ActionSe
rvlet.java:171)
atweblogic.management.console.actions.internal.ActionServlet.doGet(ActionServl
et.java:91)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:265)
atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:200)
atweblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
ntext.java:2495)
atweblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
:2204)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
Current Date
Fri Jun 20 14:16:52 CDT 2003
Console Release Build
Console Build
Server Release Build
6.1.2.0
Server Build
WebLogic Server 6.1 SP2 12/18/2001 11:13:46 #154529
All Server Product Versions
WebLogic Server 6.1 SP2 12/18/2001 11:13:46 #154529
WebLogic XML Module 6.1 SP2 12/18/2001 11:28:02 #154529
Server System Properties
awt.toolkit = sun.awt.windows.WToolkit bea.home = F:\bea\weblogicfile.encoding
= Cp1252 file.encoding.pkg = sun.io file.separator = \ java.awt.fonts =java.awt.graphicsenv
= sun.awt.Win32GraphicsEnvironment java.awt.printerjob =sun.awt.windows.WPrinterJob
java.class.path = .;.\lib\weblogic_sp.jar;.\lib\weblogic.jarjava.class.version
= 47.0 java.ext.dirs = F:\bea\weblogic\jdk131\jre\lib\ext java.home =F:\bea\weblogic\jdk131\jre
java.io.tmpdir = C:\DOCUME~1\lackp\LOCALS~1\Temp\ java.library.path =F:\bea\weblogic\jdk131\bin;.;C:\WINNT\System32;C:\WINNT;.\bin;f:\oracle\ora9
2\bin;C:\Program
Files\Oracle\jre\1.3.1\bin;C:\ProgramFiles\Oracle\jre\1.1.8\bin;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem
;C:\Program
Files\Dell\OpenManage\Array Manager;C:\ProgramFiles\Dell\OpenManage\oma\bin;C:\Program
Files\Dell\OpenManage\OMSA\bin;C:\ProgramFiles\Dell\OpenManage\LU\bin;C:\Program
Files\Dell\OpenManage\RAC\MN;C:\ProgramFiles\Dell\OpenManage\oldiags\bin;C:\PROGRA~1\CA\Common\SCANEN~1;C:\PROGRA~1
\CA\eTrust\INOCUL~1;f:\bea\tuxedo\bin
java.naming.factory.initial = weblogic.jndi.WLInitialContextFactoryjava.naming.factory.url.pkgs
= weblogic.jndi.factories java.protocol.handler.pkgs =weblogic.utils|weblogic.utils|weblogic.net|weblogic.management|weblogic.net|
weblogic.net
java.runtime.name = Java(TM) 2 Runtime Environment, Standard Editionjava.runtime.version
= 1.3.1-b24 java.security.policy ==F:\bea\weblogic\wlserver6.1/lib/weblogic.policy
java.specification.name = Java Platform API Specificationjava.specification.vendor
= Sun Microsystems Inc. java.specification.version = 1.3 java.vendor = SunMicrosystems
Inc. java.vendor.url = http://java.sun.com/ java.vendor.url.bug =
http://java.sun.com/cgi-bin/bugreport.cgi
java.version = 1.3.1 java.vm.info = mixed mode java.vm.name = JavaHotSpot(TM)
Client VM java.vm.specification.name = Java Virtual Machine Specificationjava.vm.specification.vendor
= Sun Microsystems Inc. java.vm.specification.version = 1.0 java.vm.vendor= Sun
Microsystems Inc. java.vm.version = 1.3.1-b24javax.rmi.CORBA.PortableRemoteObjectClass
= weblogic.iiop.PortableRemoteObjectDelegateImpl javax.rmi.CORBA.UtilClass= weblogic.iiop.UtilDelegateImpl
javax.xml.parsers.DocumentBuilderFactory =weblogic.xml.jaxp.RegistryDocumentBuilderFactory
javax.xml.parsers.SAXParserFactory =weblogic.xml.jaxp.RegistrySAXParserFactory
javax.xml.transform.TransformerFactory =weblogic.xml.jaxp.RegistrySAXTransformerFactory
jmx.implementation.name = JMX RI jmx.implementation.vendor = SunMicrosystems
jmx.implementation.version = 1.0 jmx.specification.name = Java ManagementExtensions
jmx.specification.vendor = Sun Microsystems jmx.specification.version =1.0 Final
Release line.separator = org.xml.sax.driver =weblogic.apache.xerces.parsers.SAXParser
os.arch = x86 os.name = Windows 2000 os.version = 5.0 path.separator = ;sun.boot.class.path
=F:\bea\weblogic\jdk131\jre\lib\rt.jar;F:\bea\weblogic\jdk131\jre\lib\i18n.ja
r;F:\bea\weblogic\jdk131\jre\lib\sunrsasign.jar;F:\bea\weblogic\jdk131\jre\c
lasses
sun.boot.library.path = F:\bea\weblogic\jdk131\jre\bin sun.cpu.endian =little
sun.cpu.isalist = pentium i486 i386 sun.io.unicode.encoding =UnicodeLittle user.dir
= F:\bea\weblogic\wlserver6.1 user.home = C:\Documents and Settings\lackpuser.language
= en user.name = lackp user.region = US user.timezone = America/Chicagoweblogic.Domain
= psglisadm weblogic.Name = psglissvr weblogic.ProductionModeEnabled =true weblogic.security.jaas.Configuration
= weblogic.security.internal.ServerConfig weblogic.security.jaas.Policy =./lib/Server.policy
>
>
Request Info
Protocol: HTTP/1.1
ServerName: 127.0.0.1
ServerPort: 7500
Secure: false
ContextPath: /console
ServletPath: /common/error.jsp
QueryString:MBean=psglisadm%3AApplication%3DPORTAL%2CLocation%3Dpsglissvr%2CName%3DWebDe
scriptor-5%2CType%3DWebDescriptor%2CWebAppComponent%3DPORTAL
PathInfo: null
PathTranslated: null
RequestURI: /console/common/error.jsp
AuthType: Basic
ContentType: null
CharacterEncoding: null
Locale: en_US
Method: GET
Session:weblogic.servlet.internal.session.MemorySessionData@92f6
RequestedSessionId:2zcy822KqSaJQpWXGNL1nqUNyhuydJL83nKXQlVvxmElLHcP77pb!157731749!-1620044925!7
500!9500!1056136434604
RequestedSessionIdFromCookie: true
RequestedSessionIdFromURL: false
UserPrincipal: system
RemoteUser: system
RemoteAddr: 127.0.0.1
RemoteHost: 127.0.0.1
Parameters
MBean =psglisadm:Application=PORTAL,Location=psglissvr,Name=WebDescriptor-5,Type=We
bDescriptor,WebAppComponent=PORTAL
>
Attributes
wlinternalaction =weblogic.management.console.actions.internal.InternalActionContext@2229ca
java.util.Locale = en_US weblogic.auth.status = 0 weblogic.httpd.user =system
weblogic.management.console.catalog.Catalog =weblogic.management.console.catalog.XmlCatalog@34fa3c
weblogic.management.console.helpers.BrowserHelper = User-Agent:Mozilla/4.0 (compatible;
MSIE 6.0; Windows NT 5.0) IE: true Netscape: false Supported: trueJavscriptHrefs:
false TableCellClick: true DocumentReloadedOnResize: falseDropdownStretchable:
true CellSpacingBlank: false EmptyCellBlank: false ImgOnclickSupported:true TableBorderFancy:
true PartialToWideTables: false DisabledControlSupported: trueweblogic.management.console.helpers.DebugHelper
= [email protected]nagement.console.helpers.UnitsHelper
= [email protected]nagement.console.helpers.UrlHelper
= weblogic.management.console.helpers.UrlHelper@65ce3c
Headers
Accept = image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*Accept-Encoding
= gzip, deflate Accept-Language = en-us Authorization = Basicc3lzdGVtOmdsaXN0ZWFtMDM=
Connection = Keep-Alive Cookie =JSESSIONID=2zcy822KqSaJQpWXGNL1nqUNyhuydJL83nKXQlVvxmElLHcP77pb!157731749!-1
620044925!7500!9500
Host = 127.0.0.1:7500 Referer =http://127.0.0.1:7500/console/actions/mbean/MBeanDescriptorFramesetAction?isNew=false&sidebarFrameId=wl_console_frame_1056136434809&frameId=wl_console_frame_1056136434850&MBean=peoplesoft%3AApplication%3DPORTAL%2CName%3DPORTAL%2CType%3DWebAppComponent&bodyFrameId=wl_console_frame_1056136434811
User-Agent = Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)
BrowserInfo
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT5.0)
IE: true
Netscape: false
Supported: true
JavscriptHrefs: false
TableCellClick: true
DocumentReloadedOnResize: false
DropdownStretchable: true
CellSpacingBlank: false
EmptyCellBlank: false
ImgOnclickSupported: true
TableBorderFancy: true
PartialToWideTables: false
DisabledControlSupported: true -
I am using WEBUTIL to download files to my harddrive. We previously used Forms 6i, but is in the process of upgrading to 10g. I have replaced get_file_name with client_get_file_name.
The problem I am having is that when I use the save dialog to save, I have to put the filename . extension, it does not pick the extension up automatically. Previously with D2KWUTIL, I could put TEST and it would save it as TEST.bmp. Now I have to type in TEST.bmp otherwise it saves it as TEST.
Does anyone know how to get around this.This is due to a slight difference of behaviour between the Java Files dialog and the Windows Native one. The best thing to do here would be to put in a tar with support so that they can log a bug on the difference in behaviour between GET_FILE_NAME and CLIENT_GET_FILE_NAME
In the short term though I guess you'd be best to check the returned filename to see if it has an extension and in code add the "best guess" extension automatically. -
How to use standard Java file in custom module
Hi All,
I want to use some CatalogItemImpl.java file in my custom DC but i was unable to find any entry in the standard component in businessobject.xml file as <businessObject name="XYZ" className="x"/>. Can anyone let me know how can we use the file file in my custom DC.
Please provide your inputs......
Regards,
Rahul.Hi Rahul,
You will not find the "CatalogItemImpl" in the 'businessobject.xml'. The 'businessobject.xml' is there to define session based API of modules. Those API have properties and web channel builder values injected when the user start a web session.
For the "CatalogItem", you will have to use the Generic Factory concept. The Generic Factory is used to allocate instance given a configuration. If no configuration exists, the default implementation is used. By adding an entry in the Generic Factory you can choose to allocate your class instead of the default class.
Within the catalog module, the alias to use for classes extending "CatalogItemImpl" is "com.sap.wec.app.common.module.catalog.businessobject.ext.interf.CatalogItemExtInterf".
Please refer to the extension guide on how to manage the Generic Factory configuration file.
Regards,
Robin -
Ok, so im pretty new to this JSP lark and have a question.
I have Java Classes resting in .java files, i need to know how
do i link these files to my .jsp page so that the classes/variable etc.
declared with the java files are recognised when they are come
across in the .jsp file.
I dont know if I have explained that properly.Just include this statement at the top of your jsp:
<%@page import="yourpackage.yourclass"%>
The .java files should of course be compiled into .class files prior to using (and you don't include the extension when importing). -
How can I get controller .java files
I have craeted OA extension pages in which I have created Entiy object, module and view objects
in JDeveloper for 12.1.1 in windows and it working fine.
Now I want to extend one of the page of payable module (payable vision operation (USA))
and the page name is SuppSummaryPG.xml .
The problem is that how can I open or import SuppSummaryPG.xml in my jdeveloper ID
and all the related files which belongs to SuppSummaryPG.xml , example raleated VO, entity objects
module file and controller servlet.
I move all the files from
apps server to jdeveloper directory , i did the same thing which is running
and working fine but the problem is with all of ViewObject and aplication module
I am not able to open these in Jdeveloper , because when I try to open these files
it gives me error that you dont have .java files , and it opens view objects and applicatino
moudel files in read only mode
the page is a standrad java moudle page
suppSummaryPG is a standard page and it is in
payable moudle herachy is
oracle/apps/pos/supplier/....suppSummaryPG
what should I doYou can use decompiler to read java code. Oracle doesn't have any policy to prevent you from reading the class files.
However you cannot change the java code and replace the standard files.
Source Code:
Oracle sells the just the software. So they are not obligated to provide source code.
The reason why they provided soruce code for forms and reports is that there is no robust personalzation and extention concepts available for them.
As per Oracle Support services, you dont need OAF code for extension and personalization.
--Prasanna -
Why java file name and class name are equal
could u explain why java file name and class name are equal in java
The relevant section of the JLS (?7.6):
When packages are stored in a file system (?7.2.1), the host system may choose to enforce the restriction that it is a compile-time error if a type is not found in a file under a name composed of the type name plus an extension (such as .java or .jav) if either of the following is true:
* The type is referred to by code in other compilation units of the package in which the type is declared.
* The type is declared public (and therefore is potentially accessible from code in other packages).
This restriction implies that there must be at most one such type per compilation unit. This restriction makes it easy for a compiler for the Java programming language or an implementation of the Java virtual machine to find a named class within a package; for example, the source code for a public type wet.sprocket.Toad would be found in a file Toad.java in the directory wet/sprocket, and the corresponding object code would be found in the file Toad.class in the same directory.
When packages are stored in a database (?7.2.2), the host system must not impose such restrictions. In practice, many programmers choose to put each class or interface type in its own compilation unit, whether or not it is public or is referred to by code in other compilation units. -
Calling a created Java file from an AIR application
I've got a guy helping me out who is creating a Java file that outputs an F1 keypress to the operating system/desktop (which Flex alone can't do.
My problem is I need to know how I can call/activate this file from within an AIR application. I want my app to be ready for when he has created it for me but I've never used Flex to call an application so I would not know what classes need to be called or if any script would be required.
In the following simple code lets say if the Java file itself was called keypress.java (or whatever file extension a java file has) what code would need to be added in, including imported classes, to make the click of the button activate this java file?
<?xml version="1.0" encoding="utf-8"?>
<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Button id="KeypressButton" label="Button" horizontalCenter="0" verticalCenter="0" click=""/>
</mx:WindowedApplication>I think one solution is to use a Java proxy to call the Web services.
In the Java proxy you can have a method that accepts the user/pass and sets them correctly for the Web service.
Then you expose that Java proxy as a data control (right click, create data control) - and then create a page that invokes that method.
(For the basics of working with a POJO data control see: http://blogs.oracle.com/shay/2009/07/java_class_data_control_and_ad.html ) -
Changing the file extension by entering a "?" in JFileChooser
Hi,
I've encountered a weird thing in JFileChooser. If you open the chooser, type at least one "?" in the field for the filename and then hit the approve button, the file extension will change to the text you entered as the filename.
To reproduce this problem, simply launch the JWSFileChooserDemo hit the "Open a File..."-button and as the filename enter something like "?deadbeef". Now click the open button and you will see that the file extension changes to "?deadbeef".
This is a really strange behaviour in my opinion.
I'm using Windows 7 with java 6u16, but the issue is the same on windows xp sp3. Perhaps on linux too. I'll give it a try as soon as I can.
Has anyone else encountered that problem?
Best regards
Edited by: Wurstsalat on Mar 23, 2010 10:30 AMTo reproduce this problemThis is not a problem but rather a feature. I did not know of this till now. Thanks for informing.
As Kevin pointed out this is related to filtering of files.
?deadbeefThis will match all the files which start with any letter followed by "deadbeef". So, ? is a wildcard meaning any one character. Other wildcard can be *, which means any number of characters. Try this:
*.txt
a*.txt
*.jp*g
??.txt I don't know other wildcards...
Thanks! -
Java application compiles java files in memory
how can I use java application program (that may call method runtime exec or some other techniques) to compile the other java files that were already loaded in memory. (I can not copy those target files to the hard disk with extension java, then compile for security reason).
And once they are compiled, where do you plan to put the compiled .class files? Same security problem, right? Perhaps you planned to load and use them "from memory" somehow? This would be a different security problem. Perhaps you need to rethink what you are doing.
-
Cannot find standart java files in DCs. I'm confused. Please help.
Hello SDN!
I need to create extension which allow users attaching files to orders in order.jsp I found standart uploadform.jsp and UploadAction.java. I've create in DC crm/home/shr/ext my own action class based on UploadAction. There're some classes in my class which NWDS cannot resolve. For example, class LocaleUtil. I added import statement by hand but NWDS cannot resolve it anyway. I tried to find LocaleUtil.java via DTR but found nothing. So I don't know in which DC java file is. Now I found only LocaleUtil.class in sap.comcrmisalwcassembly.jar but I don't know how to use this jar. Also this jar contains other unresoldev classes.
Please help me to resolve these classes.
Regards, Lev
Help will be appreciated.Hello Sateesh!
This jar file doen't available in Libraries tab. I found them in DCs\sap.com\crm\isa\lwc\_comp\gen\default\public\assembly\lib\java (note that I haven't project sap.com/crm/isa/lwc) and try to add them in Libraries tab via button "Add external JAR". After that I try to build my DCs and get an error:
[javac] ERROR: D:\Lev\work\workspace_dc\.dtc\2\DCs\sap.com\crm\home\shr\ext\_comp\src\packages\ru\sng\isa\isacore\action\Z_UploadFileAction.java:23: package com.sap.isa.cic.core.util does not exist
[javac] ERROR: import com.sap.isa.cic.core.util.LocaleUtil;
[javac] ERROR: ^
[javac] ERROR: D:\Lev\work\workspace_dc\.dtc\2\DCs\sap.com\crm\home\shr\ext\_comp\src\packages\ru\sng\isa\isacore\action\Z_UploadFileAction.java:24: package com.sap.isa.cic.customer.actionforms does not exist
[javac] ERROR: import com.sap.isa.cic.customer.actionforms.UploadForm;
[javac] ERROR: ^
[javac] ERROR: D:\Lev\work\workspace_dc\.dtc\2\DCs\sap.com\crm\home\shr\ext\_comp\src\packages\ru\sng\isa\isacore\action\Z_UploadFileAction.java:47: cannot resolve symbol
[javac] ERROR: symbol : variable LocaleUtil
[javac] ERROR: location: class ru.sng.isa.isacore.action.Z_UploadFileAction
[javac] ERROR: String actualCharset = LocaleUtil.getEncoding(LocaleUtil.getSAPLang(request));
[javac] ERROR: ^
[javac] ERROR: D:\Lev\work\workspace_dc\.dtc\2\DCs\sap.com\crm\home\shr\ext\_comp\src\packages\ru\sng\isa\isacore\action\Z_UploadFileAction.java:47: cannot resolve symbol
[javac] ERROR: symbol : variable LocaleUtil
[javac] ERROR: location: class ru.sng.isa.isacore.action.Z_UploadFileAction
[javac] ERROR: String actualCharset = LocaleUtil.getEncoding(LocaleUtil.getSAPLang(request));
[javac] ERROR: ^
[javac] ERROR: D:\Lev\work\workspace_dc\.dtc\2\DCs\sap.com\crm\home\shr\ext\_comp\src\packages\ru\sng\isa\isacore\action\Z_UploadFileAction.java:52: cannot resolve symbol
[javac] ERROR: symbol : class UploadForm
[javac] ERROR: location: class ru.sng.isa.isacore.action.Z_UploadFileAction
[javac] ERROR: FormFile file = ((UploadForm)form).getChosenFile();
[javac] ERROR: ^
[javac] ERROR: D:\Lev\work\workspace_dc\.dtc\2\DCs\sap.com\crm\home\shr\ext\_comp\src\packages\ru\sng\isa\isacore\action\Z_UploadFileAction.java:54: cannot resolve symbol
[javac] ERROR: symbol : variable LocaleUtil
[javac] ERROR: location: class ru.sng.isa.isacore.action.Z_UploadFileAction
[javac] ERROR: fileName = LocaleUtil.encodeString(fileName, inputCharset, actualCharset);
[javac] ERROR: ^
[javac] ERROR: D:\Lev\work\workspace_dc\.dtc\2\DCs\sap.com\crm\home\shr\ext\_comp\src\packages\ru\sng\isa\isacore\action\Z_UploadFileAction.java:56: cannot resolve symbol
[javac] ERROR: symbol : variable LocaleUtil
[javac] ERROR: location: class ru.sng.isa.isacore.action.Z_UploadFileAction
[javac] ERROR: contentType = LocaleUtil.encodeString(contentType, inputCharset, actualCharset);
[javac] ERROR: ^
[javac] 7 errors
After that this jar file disappear from Libraries tab. What I should to do?
Regards, Lev -
hi..
i want access android resource..
for example, res/menu/menu.xml, res/values/strings.xml ... etc...
- R.java -
/* AUTO-GENERATED FILE. DO NOT MODIFY.
* This class was automatically generated by the
* aapt tool from the resource data it found. It
* should not be modified by hand.
package com.flash.extension.nativelib;
public final class R {
public static final class attr {
public static final class drawable {
public static final int icon=0x7f020000;
public static final int notification_icon=0x7f020001;
public static final class layout {
public static final int main=0x7f030000;
public static final class string {
public static final int extension_app_name=0x7f040001; -> "hi extension"
public static final int extension_hello=0x7f040000;
so i used getResourceId("string.extension_app_name");
but it's not work.. throw NotFoundException error..
so i used context.getString(R.string.extension_app_name);
it's work, but return incorrect value.. -> return value is "0.0.0".. it's versionName in actionScript Client Project..
why can't access android resource in native extension?
how to get android resource in java natvie extension..??
Is there anyone who has a sample source??
help.. me.. please..Hello,
I am facing the same issue with the native extension i am using follwing code to get the resource id
Intent inte = new Intent(context.getActivity().getApplicationContext(),SecondActivity.class);
inte.putExtra("layout",context.getResourceId("layout.secondactivity"));
context.getActivity().startActivity(inte);
i am getting this exception "android.content.res.Resources$NotFoundException:layout.secondactivity"
I have included activity in the native manifest file as well as flex's manifest file for android.
please help me with this or an example will be great thanks. -
Can you create file extensions?
Does anyone know if u can create file extensions to read and write from using java? If so can u tell me how or reccomend something that might help teach me?
Thanks
Mikeyeah, i'm pretty sure you can use the java FileInput and printStream classes to make a new file, i mean as long as the file contains a text base, the extension really doesn't matter
Maybe you are looking for
-
ahhh, my ipod refuses to sync it just comes up with a message "the ipod "dave" cannot be synced.the disk could not be read from or written to." ahh please help i only have about and 1/8 of what i want onthere dell xp Windows XP
-
trying to get web pages to appear correct. samsung ex2220. pages are crowded with items layered on top of others. res set to native.
-
Please help.
-
How do you stop the video dimming?
Sorry if this has been asked before. I searched and searched. On the X-Fi 32GB, is there a way to stop video from automatically dimming? Thanks.
-
When i send an imessage to my wife, my mother in law receives it as well. How can i stop this