Java file issue
Hi,
I wonder if someone could give me some advice as to how I will maintain the position in a file. I have a class which reads a file every five seconds. When the class first begins to read it can start at the beginning of the file. When it reads once I would like it to remeber the position in the file and when it is next called to read, it should start from that position. I have seen example of this with random access file using the seek methods so maybe I should use this?...I'm not sure. I would really appreciate if a simple example could be provided. I've included the main parts of my own code below.
Many thanks.
File inputFile = new File("test.txt");
//long marker = inputFile.length();
//long endmarker;
FileReader fwr = new FileReader(inputFile);
BufferedReader in = new BufferedReader(fwr);
while ( (str = in.readLine()) != null) {
//do stuff with the file
}
Hi,
Ok I'm giving it a go trying to figure out the position in the file but I'm getting no where....Basically theres anohter class that arbitrarily updating this file (it could be updating every 1 or 2 seconds or not for 10 seconds). I want my parse code to read the file every five seconds but only read the new entries to the file.
So what i'm trying to say is that if this is the first time that the code is run, then start reading from the beginning of the file. If it's not then only read the new information.
So based on this logic, I've created a boolean called startOfFile and this should be set to true if the code hasnt been run before. If this is true then the file pointer is set to 0 otherwise its set to the file pointer position. This boolean is change after the first line is read. However while I am not getting any errors my code is still being read from the beginning of the file.
Any pointers appreciated,
Many thanks
public class parseClass extends Thread{
Timer timer;
int seconds;
public parseClass(int seconds) {
this.seconds = seconds;
timer = new Timer();
timer.schedule(new parseFile(),
0, //initial delay
5*1000); //subsequent rate
class parseFile extends TimerTask{
public void run() {
boolean startOfFile = true;
try {
File inputFile = new File("test.txt");
RandomAccessFile in = new RandomAccessFile(inputFile, "r" );
long Position;
if (startOfFile != false){
Position = 0;
else{
Position = in.getFilePointer();
in.seek(Position);
while ((str = in.readLine()) != null){
//do stuff with the contents of the file.
Position = in.getFilePointer();
startOfFile=false;
} //end of outer while loop
catch (IOException e) {
}
Similar Messages
-
"Java file" & "Jsp file" compilation issues in Eclipse
Hi,
Eclipse
Question 1:
I have set the value for preference->java->Installed JREs as : j2re1.4.2_07 not to jdk
When I write a java file, its compiling, how? From where its using "javac" exe file for compilation.
Question 2:
Whereas in prefrence->Tomcat->JVMSettings -> JRE(drop down box) set value as j2re.1.4.2_07
When I write a jsp file as follows
index.jsp
<html>
<body>
<%java.util.Date d = new java.util.Date();%>
Todays date is <%= d.getDate()%> and this jsp page worked!
</body>
</html>
when i try to save this file & strat tomcat I got exception as follows:
Exception:
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: -1 in the jsp file: null
Generated servlet error:
[javac] Compiling 1 source file
Please clear my doubts.
Thanks,
HariTry going into your TOMCAT_HOME/conf/web.xml and look for this section:
<servlet>
<servlet-name>jsp</servlet-name>
<servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
<init-param>
<param-name>logVerbosityLevel</param-name>
<param-value>WARNING</param-value>
</init-param>
<init-param>
<param-name>fork</param-name>
<param-value>false</param-value>
</init-param>
<load-on-startup>3</load-on-startup>
</servlet>
Change the <param-value> for fork from false to true and see if that helps.
Otherwise it's a problem with your JSP. -
How to read messages in message pool from a java file
Hi All,
I want to read a message that is defined in a message pool of a webdynpro component.
This reading should be done from a java file present in the "src" folder.
How can I get the handle to the IWDComponent?
Or is there any other way?
Or is there any way of reading localized messages in a java file of a webdynpro component?
Can you kindly guide me out of this issue?
Thanks and regards
RBHello,
my approach is more simple: how can I read within component A the message pool of another webdynpro component B ? Component A has a usage relation to component B .
I tried this within component A:
<b>this.wdThis.wdGetBInterface().wdGetAPI().getComponent().getTextAccessor().getText("ANY_TEXT");</b>
I got the exeption:
<b>java.lang.UnsupportedOperationException: Embedded Components are black boxes. You should not access parts which are not in their interface</b>.
Is there any way to share message pools ?
Thanks
Kerstin -
Error while compiling QuoteRenderer.java file
Currently I am working on Quotes customizations. As part of customizations, I need to modify the seeded java file (i.e., $JAVA_TOP/oracle/apps/qot/util/QuoteRenderer.java)
Since i have only class files, I have decompiled the class file using JAD and modified the code and placed in the same path and tried to compile. Then I am getting the below errors: [I am getting the same errors even if i placed the decompiled file without any modifications]. Can you help in resolving this issue.
Errors:
oracle/apps/qot/util/QuoteRenderer.java:16: package javax.servlet.jsp does not exist
import javax.servlet.jsp.JspWriter;
^
oracle/apps/qot/util/QuoteRenderer.java:17: package javax.servlet.jsp does not exist
import javax.servlet.jsp.PageContext;
^
oracle/apps/qot/util/QuoteRenderer.java:127: cannot find symbol
symbol : class PageContext
location: class oracle.apps.qot.util.QuoteRenderer
public static void loadQuoteLines(HttpServletRequest httpservletrequest, HttpServletResponse httpservletresponse, PageContext pagecontext, int i)
^
oracle/apps/qot/util/QuoteRenderer.java:664: cannot find symbol
symbol : class PageContext
location: class oracle.apps.qot.util.QuoteRenderer
public static void loadQuoteLines(HttpServletRequest httpservletrequest, HttpServletResponse httpservletresponse, PageContext pagecontext, String s, String s1)
^
oracle/apps/qot/util/QuoteRenderer.java:775: cannot find symbol
symbol : class PageContext
location: class oracle.apps.qot.util.QuoteRenderer
public static void loadQuoteLines(HttpServletRequest httpservletrequest, HttpServletResponse httpservletresponse, PageContext pagecontext, String s)
^
oracle/apps/qot/util/QuoteRenderer.java:838: cannot find symbol
symbol : class PageContext
location: class oracle.apps.qot.util.QuoteRenderer
private static void partialLoadQuoteLines(HttpServletRequest httpservletrequest, HttpServletResponse httpservletresponse, PageContext pagecontext, int i)
^
oracle/apps/qot/util/QuoteRenderer.java:916: cannot find symbol
symbol : class PageContext
location: class oracle.apps.qot.util.QuoteRenderer
public static void loadExpandList(HttpServletRequest httpservletrequest, HttpServletResponse httpservletresponse, PageContext pagecontext)
^
oracle/apps/qot/util/QuoteRenderer.java:975: cannot find symbol
symbol : class PageContext
location: class oracle.apps.qot.util.QuoteRenderer
public static void renderQuoteLines(HttpServletRequest httpservletrequest, HttpServletResponse httpservletresponse, PageContext pagecontext, String s, String s1)
^
oracle/apps/qot/util/QuoteRenderer.java:1652: cannot find symbol
symbol : class PageContext
location: class oracle.apps.qot.util.QuoteRenderer
public static void renderQuoteLineSmry(HttpServletRequest httpservletrequest, HttpServletResponse httpservletresponse, PageContext pagecontext, String s)
^
oracle/apps/qot/util/QuoteRenderer.java:386: reference to QuoteException is ambiguous, both method QuoteException(java.lang.String,java.lang.Object[]) in oracle.apps.qot.core.QuoteException and method QuoteException(java.lang.String,java.lang.String) in oracle.apps.qot.core.QuoteException match
throw new QuoteException(s2, null);
^
oracle/apps/qot/util/QuoteRenderer.java:982: cannot find symbol
symbol : class JspWriter
location: class oracle.apps.qot.util.QuoteRenderer
JspWriter jspwriter = pagecontext.getOut();
^
oracle/apps/qot/util/QuoteRenderer.java:1659: cannot find symbol
symbol : class JspWriter
location: class oracle.apps.qot.util.QuoteRenderer
JspWriter jspwriter = pagecontext.getOut();
^
Note: oracle/apps/qot/util/QuoteRenderer.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.Hi,
You need to add librabry for j2ee-1.4.jar in your classpath this can be found under JSP Runtime library in your jdevhome\jdevbin folder.
~Ankul -
Error while compiling java file using J2SE 1.5.0
Dear Sir,
I'm getting the following error while compiling the java file.The code is also given.
package test;
public class TestRowSet {
public TestRowSet() {
"TestRowSet.java": cannot access java.lang.Object,bad class file: D:\Program Files\Java\jdk1.5.0\jre\lib\rt.jar\java\lang\Object.class,class file has wrong version 49.0, should be 48.0,Please remove or make sure it appears in the correct subdirectory of the classpath. at line 4, column 1
Please help me out.
--Suketu Naik.But I'm compiling within "Borland JBuilder 9.0". I've
set the JDK path of the current project to point to
the path of JDK 1.5.0 . I've also tried to compile at
command prompt with "javac". I'm getting the same
error of "Undefinedclassloader" with long StatckTrace.
I don't know anything about JBuilder either. If you use the command prompt and enter the full path to the 1.5 javac.exe then that will prove whether the issue is using an older javac or not. For example "c:\j2sdk1.5.0_01\bin\javac HelloWorld.java" -
Java Mapping - Not able to compile .Java file
Hi Experts,
I am working with a sample scenario which involves Java Mapping. For this I created MappingClass.java file, After compiling the .Java file .Jar file would be used for Java Mapping by using Imported Archives.
After compiling the MappingClass.java file, I am getting the errors as below.
--> Java errors after compilation
C:\j2sdk1.4.2_13\bin>javac MappingClass.java
MappingClass.java:4: package com.sap.aii.mapping.api does not exist
import com.sap.aii.mapping.api.AbstractTrace;
^
MappingClass.java:5: package com.sap.aii.mapping.api does not exist
import com.sap.aii.mapping.api.StreamTransformationConstants;
--> End of java errors
In the MappingClass.java file, I had given followed imports.
import java.util.*;
import com.sap.aii.mapping.api.AbstractTrace;
import com.sap.aii.mapping.api.StreamTransformationConstants;
Could some one please guide me to resolve this issue.
Thanks in advance.
..SreeHi
I had copied " aii_map_api.jar " file in my Java Class path folder.. i.e " C:\j2sdk1.4.2_08\bin " AND " C:\j2sdk1.4.2_08\lib " folders too.. and even in C:\ i.e Root Drive also.
After trying to Compile my java file (ex : MappingClass.java), still I am getting the errors.
Errors shown as below.
--> Errors
C:\mytest>javac MappingClass.java
MappingClass.java:2: package com.sap.aii.mapping.api does not exist
import com.sap.aii.mapping.api.AbstractTrace;
^
MappingClass.java:3: package com.sap.aii.mapping.api does not exist
import com.sap.aii.mapping.api.StreamTransformationConstants;
^
MappingClass.java:6: cannot resolve symbol
symbol : class AbstractTrace
location: class MappingClass
private static AbstractTrace trace = null;
^
MappingClass.java:12: cannot resolve symbol
symbol : class AbstractTrace
location: class MappingClass
trace = (AbstractTrace)inputparam.get(
^
MappingClass.java:13: cannot resolve symbol
symbol : variable StreamTransformationConstants
location: class MappingClass
StreamTransformationConstants.MAPPING_TRACE );
^
5 errors
--> End of Errors
Could some one please guide me to resolve this issue.
Thanks in advance.
..Sree -
Replacing Class definition comments in java files.
Hi to all,
Im trying to implement a java file replacer that opens about a thousand java files and replaces the first comment lines. That is to say assume that these thousand java files have this comment at the beginning of them:
*Date Author Changes
*${date} ${author} initial release
My application should find these comments and replace them with
* Project Name:
* File: ${file_name}
* Purpose:
* History:
*Date Author Changes
*${date} ${author} initial release
I dont need any GUI. just I will print the changed files to console.
My question is is there any example applications you guys can suggest and should I use XML and XSL to implement this application?
Any suggestions are highly appriciated.
Best Regards.
MetanHow is XML going to help you? Also for a task which you describe its easier to replace it wholesale rather than compare what is present and what is not. If you want to selectively want to remove stuff you might run into issues where you have to compare the name of the file, and you would not even know if the documentation already existing is the right one if you do not replace.
If at all you wish to go with XML it is better with XSL transforms but I guess that would be an overkill for the purpose.
As previously suggested perl is a very good option, or if you have unix operating system you can even try some basic shell scripting to do your job
Thanks -
Oracle EBS R12 - how to compile jsp and keep .java file
Hello.
When I compile the jsp file, it will create the _pagename.class file into $COMMON_TOP/_pages directory. Some of the time it also keep _pagename.java file in there.
How can force the compiler to keep the java file always. I am using following command which creates _pagename.class file.
perl $FND_TOP/patch/115/bin/ojspCompile.pl --compile -s 'ptcResponse.jsp' --flush
It keeps the _pagename.java file some of the times and not other, example if the compilation fails then java files stored there otherwise only class.
There has to be some way/location to see/keep the _pagename.java file, we need them for troubleshooting runtime error.It keeps the _pagename.java file some of the times and not other, example if the compilation fails then java files stored there otherwise only class.
This is an expected behaviour.
There has to be some way/location to see/keep the _pagename.java file, we need them for troubleshooting runtime error.
The "perl ojspCompile.pl" command doesn't offer this -- Issue "perl ojspCompile.pl" and you will see what options are available.
Your option is to keep/save the java files in a different directory.
Thanks,
Hussein -
Where is the running JAVA file is located
Hey,
lets say my java file would be in C:\package1\whereIam.java
if I run this program, how can I ask (command ?),
in which directory the running java file is located.
i.e. I would like to get C:\package1
AykutIt's actually more complicated than that. The class could be in a jar file... would you want the directory the jar file is in? Well, I'll let you deal with those issues. You can get a URL to your class like this, I think:URL me = this.getClass().getResource("/" + this.getClass().getName());
-
Autotype won't generate java files from wsdl
Hi!
I'm having troube generating the java classes for a non built-in datatype from
wsdl. The autotype ant task will only generate a types.xml file, but it does not
generate the corresponding java files for the non-built in datatypes, nor does
it generate any serializer/deserializer classes.
Thanks in advance for any help on this!
The WSDL defines the following datatype:
<xsd:complexType name="w2Edisoprec">
<xsd:complexContent>
<xsd:restriction base="SOAP-ENC:Array">
<xsd:attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="w2EdisoprecArrayItem[]"/>
</xsd:restriction>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="w2EdisoprecArrayItem">
<xsd:sequence>
<xsd:element name="sAs_soptunnus" type="xsd:string" minOccurs="1" maxOccurs="1"/>
<xsd:element name="sAs_soptun_alk" type="xsd:string" minOccurs="1" maxOccurs="1"/>
<xsd:element name="lAs_soptun_lop" type="xsd:string" minOccurs="1" maxOccurs="1"/>
<xsd:any processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
<xsd:anyAttribute processContents="lax"/>
</xsd:complexType>
<xsd:element name="w2Edisoprec" type="w2EdisoprecArrayItem" />
I'm using the following build.xml file:
<project name="buildWebservice" default="generate-types">
<target name="generate-types">
<autotype
wsdl="http://localhost/Lak_hEdisopLK.wsdl"
packageName="ssi3Client.types"
destDir="c:/tuxedo2sap/l158/ssi3/wsdl/types"
/>
</target>
</project>
The types.xml file generated by autotype is:
<wsdd:type-mapping xmlns:wsdd="http://www.bea.com/servers/wls70"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
<wsdd:type-mapping-entry xmlns:lcl0="http://www.webMethods.com/noNamespace/"
class-name="javax.xml.soap.SOAPElement"
type="lcl0:w2Edisoprec"
serializer="weblogic.webservice.core.encoding.stream.SOAPElementCodec"
deserializer="weblogic.webservice.core.encoding.stream.SOAPElementCodec">
</wsdd:type-mapping-entry>
<wsdd:type-mapping-entry xmlns:lcl0="http://www.webMethods.com/noNamespace/"
class-name="javax.xml.soap.SOAPElement"
type="lcl0:v2EdisoprecArrayItem"
serializer="weblogic.webservice.core.encoding.stream.SOAPElementCodec"
deserializer="weblogic.webservice.core.encoding.stream.SOAPElementCodec">
</wsdd:type-mapping-entry>
<wsdd:type-mapping-entry xmlns:lcl0="http://www.webMethods.com/noNamespace/"
class-name="javax.xml.soap.SOAPElement"
type="lcl0:w2EdisoprecArrayItem"
serializer="weblogic.webservice.core.encoding.stream.SOAPElementCodec"
deserializer="weblogic.webservice.core.encoding.stream.SOAPElementCodec">
</wsdd:type-mapping-entry>
<wsdd:type-mapping-entry xmlns:lcl0="http://www.webMethods.com/noNamespace/"
class-name="javax.xml.soap.SOAPElement"
type="lcl0:v2Edisoprec"
serializer="weblogic.webservice.core.encoding.stream.SOAPElementCodec"
deserializer="weblogic.webservice.core.encoding.stream.SOAPElementCodec">
</wsdd:type-mapping-entry>
</wsdd:type-mapping>Hi Hans,
It is a known issue that the XML schema processor in WLS 7.0, doesn't currently
handle the <xsd:anyAttribute processContents="lax"/> and <xsd:any processContents="lax"
minOccurs="0" maxOccurs="unbounded"/> lines in your xsd. This may be corrected
in the next service pack - SP2.
Regards,
Mike Wooten
"Hans Dumbrajs" <[email protected]> wrote:
>
Hi!
I'm having troube generating the java classes for a non built-in datatype
from
wsdl. The autotype ant task will only generate a types.xml file, but
it does not
generate the corresponding java files for the non-built in datatypes,
nor does
it generate any serializer/deserializer classes.
Thanks in advance for any help on this!
The WSDL defines the following datatype:
<xsd:complexType name="w2Edisoprec">
<xsd:complexContent>
<xsd:restriction base="SOAP-ENC:Array">
<xsd:attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="w2EdisoprecArrayItem[]"/>
</xsd:restriction>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="w2EdisoprecArrayItem">
<xsd:sequence>
<xsd:element name="sAs_soptunnus" type="xsd:string" minOccurs="1"
maxOccurs="1"/>
<xsd:element name="sAs_soptun_alk" type="xsd:string" minOccurs="1"
maxOccurs="1"/>
<xsd:element name="lAs_soptun_lop" type="xsd:string" minOccurs="1"
maxOccurs="1"/>
<xsd:any processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
<xsd:anyAttribute processContents="lax"/>
</xsd:complexType>
<xsd:element name="w2Edisoprec" type="w2EdisoprecArrayItem" />
I'm using the following build.xml file:
<project name="buildWebservice" default="generate-types">
<target name="generate-types">
<autotype
wsdl="http://localhost/Lak_hEdisopLK.wsdl"
packageName="ssi3Client.types"
destDir="c:/tuxedo2sap/l158/ssi3/wsdl/types"
/>
</target>
</project>
The types.xml file generated by autotype is:
<wsdd:type-mapping xmlns:wsdd="http://www.bea.com/servers/wls70"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
<wsdd:type-mapping-entry xmlns:lcl0="http://www.webMethods.com/noNamespace/"
class-name="javax.xml.soap.SOAPElement"
type="lcl0:w2Edisoprec"
serializer="weblogic.webservice.core.encoding.stream.SOAPElementCodec"
deserializer="weblogic.webservice.core.encoding.stream.SOAPElementCodec">
</wsdd:type-mapping-entry>
<wsdd:type-mapping-entry xmlns:lcl0="http://www.webMethods.com/noNamespace/"
class-name="javax.xml.soap.SOAPElement"
type="lcl0:v2EdisoprecArrayItem"
serializer="weblogic.webservice.core.encoding.stream.SOAPElementCodec"
deserializer="weblogic.webservice.core.encoding.stream.SOAPElementCodec">
</wsdd:type-mapping-entry>
<wsdd:type-mapping-entry xmlns:lcl0="http://www.webMethods.com/noNamespace/"
class-name="javax.xml.soap.SOAPElement"
type="lcl0:w2EdisoprecArrayItem"
serializer="weblogic.webservice.core.encoding.stream.SOAPElementCodec"
deserializer="weblogic.webservice.core.encoding.stream.SOAPElementCodec">
</wsdd:type-mapping-entry>
<wsdd:type-mapping-entry xmlns:lcl0="http://www.webMethods.com/noNamespace/"
class-name="javax.xml.soap.SOAPElement"
type="lcl0:v2Edisoprec"
serializer="weblogic.webservice.core.encoding.stream.SOAPElementCodec"
deserializer="weblogic.webservice.core.encoding.stream.SOAPElementCodec">
</wsdd:type-mapping-entry>
</wsdd:type-mapping> -
Compile error with IDLJ generated java files.
When compiling the IDLJ generated java files, javac is not able to recognize org.omg.CORBA.ObjectHelper
classs. Looks like the import is not finding this class.
I have located these classes in rt.jar but including this jar in CLASSPATH gives
a version '48.0' is too recent error.
Thanks
RameshPLEASE IGNORE THIS MESSAGE. I HAVE RESOLVED THIS ISSUE.
"Ramesh Nadella" <[email protected]> wrote:
>
When compiling the IDLJ generated java files, javac is not able to recognize
org.omg.CORBA.ObjectHelper
classs. Looks like the import is not finding this class.
I have located these classes in rt.jar but including this jar in CLASSPATH
gives
a version '48.0' is too recent error.
Thanks
Ramesh -
While Compiling AMImple.java file
Hi All,
I am very new to OAF and am developed page and imported successfully into the server.
While compiling AMImple.java file it is giving the like
AgingAMImpl.java:30: cannot resolve symbol
symbol : class AgingVOImpl
location: class wnsgs.oracle.apps.ap.buckets.server.AgingAMImpl
public AgingVOImpl getAgingVO1()
^
AgingAMImpl.java:32: cannot resolve symbol
symbol : class AgingVOImpl
location: class wnsgs.oracle.apps.ap.buckets.server.AgingAMImpl
return (AgingVOImpl)findViewObject("AgingVO1");
Plz help me on this issue am very close to my target.
Thanks
Suryahi gyan,
I have.t implemented the code in the AM but I implemented the code in CO.
I am pasting the AMImple code below
public class AgingAMImpl extends OAApplicationModuleImpl
* This is the default constructor (do not remove)
public AgingAMImpl()
// OAViewObject objAssessmentVO = (OAViewObject)AgingAM.findViewObject("AgingVO1");
* Sample main for debugging Business Components code using the tester.
public static void main(String[] args)
launchTester("wnsgs.oracle.apps.ap.buckets.server", "AgingAMLocal");
* Container's getter for AgingVO1
public OAViewObjectImpl getAgingVO1()
return (OAViewObjectImpl)findViewObject("AgingVO1");
Thanks
Surya -
Error in compilation satge of java files
Hi all
Whenever i m trying to compile java files i m getting this error .I have no idea how to go about fixing this issue. Can any one help me out with this.
Error occurred during initialization of VM
Could not reserve enough space for object heapWell i could go ahead and solve the issue by bringing down the memory allocation at the minimum and maximum level during the compilation stage.
I got the tip from the forum itself where a similar problem had been reported and there this tip was provided.
Earlier in my case i was allocating 1GB of memory for compilation but due to some issue that much space was not being detected on the server. When i pruned that down to 512mb the compilation went ahead without any trouble.
Thanks kelly for geting in involved in geting to know the issue . -
Hi All,
How to view the change immediately after a java file that is used in jsp is modified
without restarting server or redeploy?
Moreover, it is better to keep the original session.
Any suggestion is appreciated.
Kammau
Hi,
In order to have a new version of a java class, the current classloader must be
deleted and a new one created. This is what redeployment does. I believe that
this is more of an issue with Sun's implementation of classloaders. You could
ask BEA support (719.232.7878) and see if they have any plans to periodically
check jar files to see if java class file timestamps and destroy and re-create
classloaders on the fly.
1) You will still have to accept the performance hit of destroying classloaders
and creating new ones. There isn't any way around that.
2) I would think you would want to have more explicit control in production and
integration anyway.
You can redeploy applications from the command line (script) file not just the
console.
Hope this helps,
pat
"Kammau" <[email protected]> wrote:
>
>Hi All,
>How to view the change immediately after a java file that is used in
>jsp is modified
>without restarting server or redeploy?
>Moreover, it is better to keep the original session.
>Any suggestion is appreciated.
>
>Kammau
-
How to compile .java files in windows server
Hi All,
I want to compile my CO.java file in server directly how can i do that my server is windows server
If it is Linux i can login through putty and go to java top and then file location then i use to do javac filename.java then i use to get filename.class but now same thing i did in windows server which is not working please sugget how to do its bit urgent.Why do you want to compile it on the server and not in jdeveloper? You should be able to issue the javac command from the prompt. Your unix account must have permissions to that command though.
For more info on the javac command:
http://download.oracle.com/javase/1.4.2/docs/tooldocs/windows/javac.html
Kristofer Cruz
Maybe you are looking for
-
Server 2012 r2 Hyper-v guest network speed with 10 GB NIC's
Hi Setting up a Server 2012 r2 Hyper-v host with an onboard 4 port 1 GB nic and a offboard dual port 10 GB nic. We are using the 1gb quad port for management. The 10 Gb we intend using for hyper-v guest use however we don't seem to be able to achieve
-
Calling PL/SQL procedures from a Windows CMD script
Hello, I am writing a Windows CMD script. From this script I want to call procedures from a PL/SQL package which selects, inserts or deletes rows from the database. How do I go about logging into the database from the cmd script and calling PL/SQL pr
-
Hi All, I have to calculate one percentage in my report...(sales-costs)/Sales. I am doing this by using a formula variable. I am getting the pecentage value in my report with this formula but I have to show the percentage symbol(%) also. For Ex: NOw
-
Freshly fully charged, just turned on... 3:22 on a 96% charge. Does that sound normal?
-
Any way to bring back the front page Recent Topics thingy?
I miss it. It was fun just waiting for a good question to answer. (I used another ID back then, I used to be Level 2)