How to set Java options in Linux?
Dear all, I'm using Ubuntu, Java version is 1.6.0.3
I want to run Java with some options changed, such as this in command line:
java -server -Xms128m -Xmx512m -Dcom.sun.management.jmxremote.port=8999 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Djava.rmi.server.hostname=11.40.5.62 -classpath . HelloWorld
This works well. However, I want to set the options "-server -Xms128m -Xmx512m -Dcom.sun.management.jmxremote.port=8999 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Djava.rmi.server.hostname=11.40.5.62" as my java default options so that I only have to use
java -classpath . HelloWorld
And also I want the options to work on my HelloWorld.war file. (This is what I need finally)
I changed catalina.sh in tomcat, but it seems like it doesn't help. Any suggestions? Thank you!!!
aiGrace wrote:
I want to set the options "-server -Xms128m -Xmx512m -Dcom.sun.management.jmxremote.port=8999 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Djava.rmi.server.hostname=11.40.5.62" as my java default options so that I only have to use
java -classpath . HelloWorldUse the *nix alias command
alias java="java -server -Xms128m -Xmx512m -Dcom.sun.management.jmxremote.port=8999 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Djava.rmi.server.hostname=11.40.5.62"
Similar Messages
-
How to Set Polling Options of a DB adapter From EnterpriseManager/AdminCons
HI All,
We all know after Dragging a DB adapeter we can manually set the polling Options in J developer
However,
My query is how to Set Polling Options of a DB adapter From EnterpriseManager/AdminCons so that we dun hav to change our code and redeploy if any change is asked for.
My DB adapter is deployed to EM.(SOA Server).
Polling Options are like:
From the Polling Frequency list, select how frequently to poll for new records or events.
In the Database Rows per XML Document field, specify the number of rows per XML document when sending events to Oracle BPEL PM or Mediator. This is the batch setting between the database adapter and its consumer: Oracle BPEL PM or Mediator.
In the Database Rows per Transaction field, select Unlimited or enter a value to indicate the number of table rows to process during a single transaction.
When polling the database for events, you can order the returned rows by the selected column by using the Order By list. The best practice is to choose <No Ordering>, as message ordering regardless is not guaranteed without extra configuration.Hi,
Inside your composite (in the EM), you can see there is a category table call 'Services and References'.
Under it, find the name of your JCA Adapter, where you've define the polling from the DB. Click on it and go to the property tab.
There you can find all the parameters you've set and more.
After you finish update it, click on Apply (this will automatically poll the data).
Arik -
How to set printer options when direct printing from Linux AS Sevr.?
We have a problem like this: Our app server is a 10g R2. We want to DIRECTLY print reports to a HP LaserJet 1320 PCL 6 which is attached to a Windows print server.
We can print the reports from the Oracle Forms (we use reports builder to create a PDF in a directory and then using HOST command we print it).
The command we use is lp -d LaserJet sicl_rcpdebtnt_5.pdfProblem is the printout comes with the top 10% of the page not printed. i.e. the printing starts from about 10% of the PDF. The header and top information is not printed.
We tried the scaling option: lp -o scaling=75 -d LaserJet sicl_rcpdebtnt_5.pdfBut that also has no effect.
What can we do to print the entire PDF in ONE page. When we open the PDF in Windows and prints it we have to say Fit to printer margins for the printer's page scaling property.
How to set this in command line Linux???Since you are not printing directly from Reports (destype=printer) this is not really a Reports issue I guess. Maybe you should ask this in a Linux forum.
However:
we have to say Fit to printer margins looks to me that there is a mismatch between your Report design and paper format. Check page size and margins in Reports Builder. -
How to set the option Bit-mapped indexes to true ?
Hi,
I a not a an Oracle Administrator. Usually, I just use Oracle as developper. I have got a Oracle 10g database. I can not import data in my database because the Bit-mapped options is not set.
When I type
select banner from v$version
I get this result :
BANNER
Oracle Database 10g Release 10.2.0.1.0 - Production
PL/SQL Release 10.2.0.1.0 - Production
CORE 10.2.0.1.0 Production
TNS for Linux: Version 10.2.0.1.0 - Production
NLSRTL Version 10.2.0.1.0 - Production
I run the import and I get this error :
IMP-00017: following statement failed with ORACLE error 439:
"CREATE BITMAP INDEX "ID_ACC_DO" ON "ES_AUDIT_CONNEXION_ARCH" ("DATE_OUVERTU"
"RE" ) PCTFREE 10 INITRANS 2 MAXTRANS 255 STORAGE(INITIAL 33554432 FREELIST"
"S 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT) TABLESPACE "IND_XL" LOGGING"
IMP-00003: ORACLE error 439 encountered
ORA-00439: feature not enabled: Bit-mapped indexes
I typed the command :
SELECT * FROM V$OPTION WHERE PARAMETER LIKE 'Bit-mapped%';
I get the result :
PARAMETER
VALUE
Bit-mapped indexes
FALSE
How to set this parameter to true ?
Best regards,
XavierI beleiev that you are on Standard Edition.Bitmap indexes can be used only when you are working with Enterprise edition.
SQL> select * from V$option where parameter like '%Bit%';
PARAMETER
VALUE
Bit-mapped indexes
TRUE
SQL> select * from V$version;
BANNER
Oracle Database 11g *Enterprise Edition* Release 11.1.0.6.0 - Production
PL/SQL Release 11.1.0.6.0 - Production
CORE 11.1.0.6.0 Production
TNS for 32-bit Windows: Version 11.1.0.6.0 - Production
NLSRTL Version 11.1.0.6.0 - Production
SQL>I guess you see the entry coming of Enterprise Edition in my banner.This is missing in your V$version, so you are using Standard Edition install.
You need to move to Enterprise edition to use Bitmap Indexes.
HTH
Aman....
Edited by: Aman.... on Dec 11, 2008 3:09 PM
added a little more. -
How to set Develoment Environmnet in Linux using Tomcat for Application
Hi All,
I am facing problem while craeting development environment in Linux for Tomcat.
I have installed Tomcat in /opt/tomcat directory.
Within Tomcat i made a Application Dir name "eprosys".
/opt/tomcat/eprosys/WEB-INF/classes
/web.xml
and then configure server.xml in conf directory
<Context path="/project"
docBase="opt/tomcat/eprosys"
reloadable="true"
debug="0"/>
</Host>
then i started tomcat
[root@localhost bin]# ./startup.sh
Using CATALINA_BASE: /opt/tomcat
Using CATALINA_HOME: /opt/tomcat
Using CATALINA_TMPDIR: /opt/tomcat/temp
Using JRE_HOME: /usr/java/jdk1.5.0_07/
[root@localhost bin]#
In catalina.out message which i get.
Aug 26, 2006 6:39:21 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Aug 26, 2006 6:39:21 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/30 config=null
Aug 26, 2006 6:39:22 PM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
Aug 26, 2006 6:39:23 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 17978 ms
[raingauge] DEBUG [Timer-0] LocationDailyGraphManagerImpl.createLocationDailyGraphs(62) | Location Daily Graph. Creating graphs at Time=Sat Aug 26 18:39:43 IST 2006
But when i use browser like
http://localhost:8080/project
I get this message .
HTTP Status 404 - /project/
type Status report
message /project/
description The requested resource (/project/) is not available
So, please help me where i am wrong. Same thing i do in Windows O/s it works.
But in Linux i face problem,
Bye,
PrabhataiGrace wrote:
I want to set the options "-server -Xms128m -Xmx512m -Dcom.sun.management.jmxremote.port=8999 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Djava.rmi.server.hostname=11.40.5.62" as my java default options so that I only have to use
java -classpath . HelloWorldUse the *nix alias command
alias java="java -server -Xms128m -Xmx512m -Dcom.sun.management.jmxremote.port=8999 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Djava.rmi.server.hostname=11.40.5.62" -
How to set print option for a Billing document using T-code VF02
Hi All,
Please suggest me the way to set print option for a Billing document for T-code VF02 and please let me know how to get print preview for any particular Billing document?
regards
Anand.Enter the billing documents detail
Goto Goto> Header>Output.
Check the status for your output type in this screen.
If it is green then come back to the VF03 screen.Enter the billing document number.
Click on Billing document-->Issue output to.
Press (CtrlShiftF1) or click on the icon beside "Print options".
Here you can see the print preview.
If the status is red then click on the processing log.Here you will get the error messages.
If the status is in yellow colour,then click on the "Further Data" button
Set "Dispatch time" as "4 Send immediately (when saving the application)"
Before the print preview option you should make sure you have added correct output type to the relevant billing document. To do that, go to transaction VF02.
Enter the billing document no
Go to Menu option -> Go to -> Header -> Output
In that screen you have to add relevant output type. (Standard output type is RD00)
Add that & press enter key
Highlight that line & press "Further Data" button
Set "Dispatch time" as "4 Send immediately (when saving the application)"
Press "Back" Button
again select that line & go to "Communication method" button
Set "Logical destination" as LOCAL"
Don't mark "Print immediately" & "Release after output" ticks. If you mark them, sa soon as you save the billing document, you'll get a print out.
Press "Back" Button
Save
Now form the initial "Change Billing Document" screen, Go to Menu option; Billing Document -> Issue Output to
You can see that output type line appear.
select that line & press "Print Preview" button or (CTRLSHIFTF1)
You can see the print preview.
Alternatively you can use VF31 to print multiple print outs at same time.
If you want to get PDF outputs of billing documents, go to your printer settings in the your computer from Control Panel.
Set PDF Writer as "Default Printer" (Right click & select "Set as Default Printer")
Then normal way, print the billing from SAP.
It'll automatically send to your PDF writer. You can save it to the path you want, -
How to modify Java options in Oracle 10g Application Server
I am trying to modify the Java Options to specify the following field:
-Djavax.xml.transform.TransformerFactory=
org.apache.xalan.processor.TransformerFactoryImpl
But I am unable to locate the Server Properties section on the Administration section. I had expanded the Prperties section fully also. I had logged in as oc4jadmin.
Can anyone help me out in understanding how to modify the Server Properties. I have consulted the Oracle Documentation but still I cant locate the Server Properties section.Michel,
I have logged in using the following URL: http://<machinename>:<port>/em. The URL eventually changes to http://<machinename>:<port>/em/console/ias/oc4j/administration upon successful login.
I clicked on the Application Server and then clicked on administration link but I dont see Server Properties. I only see the following under Properties section:
EJB Compiler Settings
J2EE Websites
JSP Properties
Logger Configuration
Thread Pool Configuration
Shared Libraries
I am sure I am missing something here.Can you please help me figure that out please.? -
How to set autosave option in flash and other Application
hi,
How to set automaticaly autosave and backup option in flash and other Application?
Thanks for reading!The Flash forums are here:
http://forums.adobe.com/community/flash
This forum is only for discussions on the forums themselves.
And when you post there, don't forget to add enough information about your specific setup. -
How to set java.naming.provider.url when multiple oc4j instances in iAS
Hi Folks,
I have problems engaging a connection to a deployed application in a 9.0.3 iAS instance. I created 2 oc4j instance within the iAs instance.
I wonder how to set up the JNDI provider url?!?
According http://download-west.oracle.com/docs/cd/A97329_01/web.902/a95879/jndi.htm
the provider url contains of ormi://host:port/application.
Unfortunatly I get a connection refused Naming Exception.
What's wrong?
Where can I look up the
java.naming.security.principal
java.naming.security.credentials
Are they set by default?
I tried the following scenario:
java.naming.provider.url=ormi://host/oc4j-instance/application/
and a user/password from principals.xml in the application/config directory, but don't have any success.
So please help me ;-).
Bye & Thx
TobyThis is correct as far as aI remember
1) java.naming.provider.url = t3://server1:port1,server2:port2
see
http://download.oracle.com/docs/cd/E13222_01/wls/docs81/jndi/jndi.html -- Using WebLogic JNDI from a Client in a Clustered Environment -
Urgent! how to enable java option?
I am installing 9iAS and need to enable the java option, my unix
box doesn't have x_window, could you tell me how to do it?
ThanksHi there,
I am also trying to install 9iAS and I need to enable Java on
8i. I tried to add the following in the initSID.ora file:
java_pool_size = 10000000 #10M
java_max_sessionspace_size = 20000000 #20M
java_soft_sessionspace_limit = 20000000 #20M
but didn't work!
Is there anyone that knows how to enable this?
How can we check if we do have java enabled? (which
datadictionnary table?)
thanks in advance.
joss -
How to set iPod options BEFORE connecting?
The first time you connect a loaded iPod to a new Mac, how can you stop iTunes from "synchronizing" with it, thereby deleting all the music that was loaded onto the iPod already?
Soon we will be a multi-iPod, multi-computer family. We will want to use a single iPod with more than one computer, so we will be setting the iPod to "manually manage music." However, iTunes doesn't seem to let you set iPod options until AFTER you have connected the iPod. I am worried that it will erase the iPod before it gives me a chance to set "manually manage music."
For Christmas-related reasons, it is not possible to test any of this before Christmas and I need to get it right the first time!You can use a keyboard command to prevent your iPod auto-syncing with iTunes. While connecting the iPod to the computer on a Mac hold down the Option and Command (⌥ and ⌘ Apple) keys. This will stop the iPod from auto-syncing with iTunes and it will appear in the source list. Wait until you are sure the iPod has mounted, and that it will not auto sync and then you can let the keys go. This may take between 20 to 30 seconds depending on your computer. You should then be able to change your settings: iTunes Keyboard Shortcuts for OSX
-
How to set java.library.path form code
I'm new to JNI. I see there are several ways to set JVM to look for libraries dll, so, etc.
System.setProperty("java.library.path", ".");
System.loadLibrary("hello");That's when UnsatisfiedLinkError
java.lang.UnsatisfiedLinkError: no hello in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)
at java.lang.Runtime.loadLibrary0(Runtime.java:822)
at java.lang.System.loadLibrary(System.java:992)
at HelloWorld.main(HelloWorld.java:17)But if I comment the line that sets the java.library.path and call the program with the command java -Djava.library.path=. HelloWorld works.
The question is: Why is not working? How should it be the property setup? I rather don't set Variables, or use -D option.
Thanks in advance.
PD: If it helps I'm using JDK 1.5.0_01 on Linux kernel 2.6.8well i wrote the script and everything is fine! i can run the blackbox example on the commapi.
But i am writing another program using netbeans to send some data to a PIC microcontroller using the serial port (that is why i installed the commapi), and when i'm trying to build it or run it on netbeans throws this error:
Error loading LinuxSerialParallel: java.lang.UnsatisfiedLinkError: no LinuxSerialParallel in java.library.path
Exception in thread "main" java.lang.UnsatisfiedLinkError: isDevLink
at com.sun.comm.Unix.isDevLink(Native Method)
at com.sun.comm.PathBundle.add(PathBundle.java:108)
at com.sun.comm.PlatformPortBundle.<init>(PlatformPortBundle.java:44)
at javax.comm.CommPortIdentifier.<clinit>(CommPortIdentifier.java:138)
as far as i know it seems to be missing a library (LinuxSerialParallel), if this is right, adding the library would solve the error?how can i add the library? is there another way to solve this?
thanks in advance!! -
Hi,
I have installed Java 7 using rpm file: jdk-7u17-linux-x64.rpm, with the help of below command on my linux box:
rpm -ivh jdk-7u17-linux-x64.rpm
After completing the installation the java is installed in location "/usr/java/jdk1.7.0_17", when I try to find the jave version I am getting different result:
java version "1.6.0_22"
OpenJDK Runtime Environment (IcedTea6 1.10.4) (rhel-1.41.1.10.4.el6-x86_64)
OpenJDK 64-Bit Server VM (build 20.0-b11, mixed mode)
It is still pointing to 1.6 which was installed on my linux box earlier. How can I make sure that the java command uses the latest installed JDK 7?Hi.
which java show what file select for this command.
Environment variable PATH set order of path for find executable file.
Try set:
export PATH=/usr/java/jdk1.7.0_17/bin:$PATH
export JAVA_HOME=/usr/java/jdk1.7.0_17
add this commands to $HOME/.profile for make this changes permanent.
Regards. -
How to set view options for whole subdirectory tree
In the "shw view options" menu of the Finder, i can set the "show icon preview" and the "icon size" for a single window.
I wold like to apply these options to all directories in a given directory sub-tree (but not to all directories).
Doing this manually would be really tedious, since there are a lot of directories in my subdirectory.
Does anyone have an idea, how to do that more automatically?
Best regards,
Gabriel.Hello Justin
I copied the sample report <b>SALV_DEMO_TREE_FUNCTIONS</b> (available on IDES ECC 5.0) and added the following coding to routine <i>set_columns_technical</i>:
[code]&----
*& Form set_columns_technical
text
FORM set_columns_technical.
DATA: lr_columns TYPE REF TO cl_salv_columns,
lr_column TYPE REF TO cl_salv_column.
lr_columns = gr_tree->get_columns( ).
lr_columns->set_optimize( abap_true ).
lr_columns->set_column_position( columnname = 'PRICE'
position = 1 ).
change a column's alignment
TRY.
lr_column ?= lr_columns->get_column( 'CURRENCY' ).
lr_column->set_alignment( if_salv_c_alignment=>right ).
"$Comment: added coding
DATA:
ld_short TYPE scrtext_s,
ld_medium TYPE scrtext_m,
ld_long TYPE scrtext_l.
ld_short = 'Short'.
lr_column->set_short_text( ld_short ).
ld_medium = 'Medium Col Text'.
lr_column->set_medium_text( ld_medium ).
ld_long = 'Long Column Text'.
lr_column->set_long_text( ld_long ).
"$Comment: added coding
CATCH cx_salv_not_found. "#EC NO_HANDLER
ENDTRY.
...[/code]
At least the new short text is displayed on the ALV tree. I assume that you have to be very careful and scrupulous in choosing the correct data types for the method calls.
Regards
Uwe -
I don't want Firefox to save a copy on my hard disk of every attachment, PDF, etc. that I open while browsing. How do I make this happen?
Firefox needs to download and save a file before passing it to a plugin.
You can set the Boolean pref <b>browser.helperApps.deleteTempFileOnExit</b> to <i>true</i> on the <b>about:config</b> page to remove such files.
To open the <i>about:config</i> page, type <b>about:config</b> in the location (address) bar and press the "<i>Enter</i>" key, just like you type the url of a website to open a website.<br />
If you see a warning then you can confirm that you want to access that page.<br />
*Use the Filter bar at to top of the about:config page to locate a preference more easily.
*Preferences that have been modified show as bold (user set).
*Preferences can be reset to the default via the right-click context menu if they are user set
*Preferences can be changed via the right-click context menu: Modify (String or Integer) or Toggle (Boolean)
Maybe you are looking for
-
Forum, I read the standard video card installed in a Mac Pro is an ATI Radeon 2600 XT 256 RAM. Is this card powerful enough to ensure satisfactory performance with Final Cut Studio 2? Thanks, Michael.
-
Sdo_nn is not showing desired results
Hello, We have the following query : SELECT p.codigo_proveedor_ca, p.descripcion AS Proveedor, DECODE(p.habitual,0,'N','S') AS HAB, DECODE(p.h_24,0,'N','S') H24, b.codigo_base, b.tipo_via || ' ' || b.nom_via || ',' || b.numero_via || ' ' || B.PI
-
Mapping flat file and table to a target table
Hi all I need to join a db table and a flat file as source and output (target) it to a db table. I know we can do it through external tables, however at this juncture we have to do it through flat files only. Thanks PC
-
Simple Application - Thread problem
Hi, I created a simple application, which uses a thread to check the current time..if the current time is after the "Quitting Time" then a msg is displayed telling how long its been....anyhow..as soon as i run my application the popup msg is displaye
-
Hi, Can i read from a remote Directory in a LAN network if it is protected by password? I need open this Directory as a File Object and not as URL Object. How I settings username and password to open this Directory? Thank you Alessandro