Load a new URL from command line under Mac OS X 10.5
Under Mac OS X 1.05: if Firefox is already running and I type (in a Terminal):
/Applications/Firefox.App/Contents/MacOS/firefox-bin http://google.com
a pop-up comes out and complains that "Firefox is already running". The behavior under Linux is load the requested URL in a new tab|window.
I have also tried *documented* options such as "-new-tab" and "-remote", but I get the same error.
This only happens when Firefox is already running.
Is there a way to load a new URL from the command line if Firefox is already running, under Mac OS X? I have tried Mac's open(1), but it does not get along well with Tab Mix Plus, so it is useless for me.
I think that this difference in the behavior between Linux and Mac's version is very very very annoying for developers and users!
open -a Firefox.app http://www.google.com
Similar Messages
-
How to open firefox 22 in private browsing and navigate an url from command line
Hello. What i want is simple
Start firefox at private browsing mode
At this started private browsing mode open multiple urls
But it is not working
I tried this
It always open a new regular window and navigate url in that regular window. Also opens a private window but doesn't navigate any url
How to fix =It is a workaround that you can consider because other ways probably aren't possible.
You could reserve a second profile in cases where you need to use the command line if you do not want to do this in the current default profile.
See:
*http://kb.mozillazine.org/Creating_a_new_Firefox_profile_on_Windows
*http://kb.mozillazine.org/Shortcut_to_a_specific_profile
*http://kb.mozillazine.org/Using_multiple_profiles_-_Firefox
You can use the -no-remote command line switch to open another Firefox instance with its own profile and run multiple Firefox instances simultaneously.
*http://kb.mozillazine.org/Opening_a_new_instance_of_Firefox_with_another_profile -
Install Adobe Air application (.air file) from command line in Mac OS X
Hello everybody
I would like to install an air application on many systems (Mac OS X) using remote install. Is there a way to achieve this?
Is there a pure command line utility to install Adobe AIR applications (.air files) in Mac OS X?
Thanks. MasteradiThanks for your reply. I already knew that command but it's good to see it again.
In the meantime I have found a tool called ARH (AIR Redistribution Helper) which can be used to install an air application, uninstall an air application, etc.
Now I would like to create a .pkg file (for Mac OS X) that will use ARH together with my .air file and that will install or update (uninstall/install) the application. But I guess this is no more an issue for Adobe AIR. I have to learn the tools specific for Mac (Iceberg, Xcode).
Best regards
Masteradi -
How to restore or backup Apex application from Command line ? URGENT
We have Oracle apex 4.1 installed in Oracle 11g R2 database (windows 64-bit) 2008 R2
For some reason our database dictionary objects are corrupted.
We wanted to backup our Apex applications in some workspaces ASAP.
We are not able to access apex from http://localhost:7777/pls/apex/htmldb_login
We have an underlying database schema export (expdp).
1) Is there a way to export or backup the apex application without logging into the apex URL ? if yes how ?
2) Does Oracle has any of its own native tool to backup and restore from command line ?
Thanks in advanceMy (MS Windows) experience, if I may; perhaps you'll find something useful.
You'll find the README.TXT file in /apex/utilities directory. Read it.
In order to use APEXExport, you need JDK version 1.5 or higher. Check your version by typing (and viewing the result):
C:\>java –version
java version "1.6.0_06"
Java(TM) SE Runtime Environment (build 1.6.0_06-b02)
Java HotSpot(TM) Client VM (build 10.0-b22, mixed mode, sharing)Its directory should be part of the PATH environment variable: on my computer, directory name isC:\Program Files\Java\jre1.6.0_06\binFurthermore, Oracle JDBC class libraries must be part of the CLASSPATH environment variable. Check whether it exists (in Control Panel - System - Advanced - Environment Variables). For my 10gXE, it is here:C:\oraclexe\app\oracle\product\10.2.0\server\jdbc\lib\ojdbc14.jarI couldn't make it work; didn't know that ".\" directory must be entered into CLASSPATH as well (found that information in Arie Geller's book). Therefore, my final CLASSPATH version is:.\;C:\oraclexe\app\oracle\product\10.2.0\server\jdbc\lib\ojdbc14.jarOK, setup is done. Now, go to your /apex/utilities directory and, from the command prompt, run (mind the upper case!)java oracle.apex.APEXExportwhich will show a short help.
I chose to export the whole workspace. In order to do that, I need the workspace ID (got it from Apex's SQL Workshop; that might be a problem as you can't get there, can you? I can't tell how to find that information apart from SQL Workshop, but I'm pretty sure someone, who is much more experienced than me, will know it). OK, here's how you find it:select v('WORKSPACE_ID') from dual;Finally, here's the final step - export:C:\apex\utilities>java oracle.apex.APEXExport -db localhost:1521:xe -user scott -password tiger -workspaceid 1038408092496568The result are fxxx.sql files (where "xxx" represents application number).
I hope you'll manage to export your applications; basically, nothing special here (except that ".\" directory in the CLASSPATH variable).
Best of luck! -
Running Unit Test from test manager that run bat file from command line
Hi ,
I am trying to run Jsystem (java framewotk) from command line using runScenario.bat thru unit test that i associated to test in test manager.
the idea is that when i ran the automated test from MTM - it will run the the unit test that will run the appropriate test case in java.
i wrote the code like this :
using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace UnitTestProject3
[TestClass]
public class UnitTest1
[TestMethod]
public void TestMethod1()
try
String command = "c:\\JSYSTEM\\runner\\runScenario.bat
c:\\Users\\ryeshua\\Source\\Workspaces\\Auto1\\my-tests-project\\target\\classes scenarios\\feature1 RoeySetup.xml ";
System.Diagnostics.ProcessStartInfo procStartInfo =
new System.Diagnostics.ProcessStartInfo("cmd", "/c " + command);
procStartInfo.RedirectStandardOutput = true;
procStartInfo.UseShellExecute = false;
//procStartInfo.CreateNoWindow = true;
System.Diagnostics.Process proc = new System.Diagnostics.Process();
proc.StartInfo = procStartInfo;
proc.Start();
string result = proc.StandardOutput.ReadToEnd();
Console.WriteLine(result);
catch (Exception objException)
// Log the exception
and when i ran it from visual studio it worked perfect. and update the Jsystem logs of the junit test in the jsystem/runner/log folder.
but when i added it to associated test and ran it from MTM - it pass but it does not update the logs in jsystem folder.
the problem that i dont know what is not working. i cant see the output of it when i ran from mtm but can see when i ran from VS.
i am using VS 2013 Pro with MTM 2013.
please advice
RoeyHi Roey,
Thank you for posting in MSDN forum.
Based on your issue, could you please tell me how you generate the log file under the jsystem folder?
Generally, I know that when we run unit test from VS IDE, the file will be saved into the local machine. But when we run unit test from MTM, the unit test method will be run on the test agent machine, so the file will be saved into the test agent machine.
Therefore, I suggest you could check if you did not see the updated logs file in jsystem folder on the test agent machine.
In addition, I suggest you could try to copy this unit test project on this test agent machine and then run the unit test method using mstest.exe in command line and then check if you can update the logs file.
https://msdn.microsoft.com/en-us/library/ms182489.aspx?f=255&MSPPError=-2147217396
If you have any updated message about this issue, please tell me.
Best Regards,
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
CMake behaves differently from within PKGBUILD and from command line
Hi,
I am currently struggling with an issue which I cannot find a solution. The problem is, I am trying to create a PKGBUILD for the CasADi code. The following is the PKGBUILD file written. My problem is the cmake configuration part. When the code is configured from the command line, without PKGBUILD, camke detects the -fopenmp flag for C and C++ compilers. For exactly the same compilers, cmake detects openmp for C compiler but fails to do so for the C++ compiler, when configuration is done from within the PKGBUILD file using makepkg.
My question is, why different behaviors? Any suggestions on what is wrong?
pkgname=casadi-git
pkgver=0
pkgrel=1
pkgdesc="A symbolic framework for automatic differentiation and numeric optimization"
arch=('i686' 'x86_64')
url=""
license=('GPL')
groups=()
depends=('sundials' 'ipopt' 'blas' 'lapack' 'python2')
makedepends=('cmake' 'swig')
checkdepends=()
optdepends=()
provides=('casadi')
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=('casadi::git+https://github.com/casadi/casadi.git')
md5sums='SKIP'
build() {
cd "$srcdir/casadi"
sed -i 's/PythonLibs/PythonLibs 2.7/g' ./cmake_modules/FindNUMPY.cmake ./swig/CMakeLists.txt
cmake . -DCMAKE_INSTALL_PREFIX=/usr \
-DPYTHON_EXECUTABLE=/usr/bin/python2 \
-DWITH_DL:BOOL=ON \
-DWITH_LLVM:BOOL=OFF \
-DWITH_PYTHON_INTERRUPTS:BOOL=ON \
-DWITH_OPENMP:BOOL=ON \
-DWITH_OOQP:BOOL=ON \
-DWITH_DOC:BOOL=ON \
-DWITH_OPENCL:BOOL=OFF
make
package() {
cd "$srcdir/casadi"
make DESTDIR="$pkgdir/" install
Output when cmake is run from command line
-- The C compiler identification is GNU 4.8.1
-- The CXX compiler identification is GNU 4.8.1
-- Check for working C compiler: /usr/bin/colorgcc
-- Check for working C compiler: /usr/bin/colorgcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- The Fortran compiler identification is GNU
-- Check for working Fortran compiler: /usr/bin/gfortran
-- Check for working Fortran compiler: /usr/bin/gfortran -- works
-- Detecting Fortran compiler ABI info
-- Detecting Fortran compiler ABI info - done
-- Checking whether /usr/bin/gfortran supports Fortran 90
-- Checking whether /usr/bin/gfortran supports Fortran 90 -- yes
-- Flag needed for enabling C++11 features: -std=gnu++11
-- x86_64 architecture detected - setting flag -fPIC
-- Try OpenMP C flag = [-fopenmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Success
-- Try OpenMP CXX flag = [-fopenmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Success
-- Found OpenMP: -fopenmp
-- Looking for Fortran sgemm
-- Looking for Fortran sgemm - found
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - found
-- Found Threads: TRUE
-- Found LibXml2: /usr/lib64/libxml2.so (found version "2.9.1")
-- A library with BLAS API found.
-- Looking for Fortran cheev
-- Looking for Fortran cheev - found
-- A library with LAPACK API found.
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.28")
-- checking for one of the modules 'ipopt'
-- Detected an IPOPT configuration without development headers. Build will proceed, but without callback functionality. To enable it, see https://github.com/casadi/casadi/wiki/enableIpoptCallback
-- Detected an IPOPT configuration without sIPOPT headers. Build will proceed, but without sIPOPT functionality.
-- Found IPOPT: ipopt;lapack;blas;m;dl;coinmumps;pthread;blas;gfortran;m;gcc_s;quadmath;coinmetis
-- Could not find KNITRO include dir
-- Could not find KNITRO library
-- Could not find CPLEX include dir
-- Could not find CPLEX libraries
-- Could not find MA57
-- MA57 libraries not found. Falling back to MA27
-- Could not find MA27
-- Could not find OOQP include dir
-- Could not find SNOPT include dir
-- Found Snopt libs: /usr/lib64/libf2c.a;/usr/lib64/liblapack.so;/usr/lib64/libblas.so;dl
-- Could not find MATLAB include dir
-- Could not find Matlab libs
-- Could not find SNOPT include dir
-- Found Snopt libs: /usr/lib64/libf2c.a;/usr/lib64/liblapack.so;/usr/lib64/libblas.so;dl
-- Could not find MATLAB include dir
-- Could not find Matlab libs
-- Found SWIG: /usr/bin/swig (found version "2.0.10")
-- Found PythonLibs: /usr/lib64/libpython2.7.so (found suitable version "2.7.5", minimum required is "2.7")
-- Python executable is /home/hamid/bin/python
-- numpy.get_include() is /usr/lib/python2.7/site-packages/numpy/core/include
-- Numpy path found: /usr/include/python2.7/numpy
-- Python libs: /usr/lib64/libpython2.7.so
-- Numpy includes: /usr/include/python2.7/numpy;/usr/include
-- Numpy libs: /usr/lib64/python2.7/site-packages/numpy/core/multiarray.so
-- Found PythonInterp: /home/hamid/bin/python (found version "2.7.5")
-- Found Doxygen: /usr/bin/doxygen (found version "1.8.4")
-- Found DOXYFILE_IN: /usr/src/AUR/build/casadi/src/casadi/documentation/api-doc/Doxyfile.in
-- pyreport not found -- try 'easy_install pyreport'
-- The following features have been enabled:
* dynamic-loading , Compile with support for dynamic loading of generated functions (needed for ExternalFunction)
* using-c++11 , Using C++11 features (improves efficiency and is required for some examples).
* sundials-interface , Interface to the ODE/DAE integrator suite SUNDIALS.
* csparse-interface , Interface to the sparse direct linear solver CSparse.
* lapack-interface , Interface to LAPACK.
* ipopt-interface , Interface to the NLP solver Ipopt.
* qpoases-interface , Interface to the active-set QP solver qpOASES.
* dsdp-interface , Interface to the interior point SDP solver DSDP (requires BLAS and LAPACK).
-- The following OPTIONAL packages have been found:
* OpenMP
* LibXml2
* BLAS
* Threads
* LAPACK
* PkgConfig
* IPOPT
* SWIG
* NUMPY
* PythonInterp
* Doxygen
-- The following features have been disabled:
* just-in-time , Just-in-time compiliation via the LLVM compiler framework.
* opencl-support , Enable just-in-time compiliation to CPUs and GPUs with OpenCL.
* get-ipopt , Download and build Ipopt.
* knitro-interface , Interface to the NLP solver KNITRO.
* cplex-interface , Interface to the QP solver CPLEX.
* ooqp-interface , Interface to the QP solver OOQP (requires BLAS).
* worhp-inteface , Interface to the NLP solver Worhp (requires LibXml2 headers).
-- The following OPTIONAL packages have not been found:
* KNITRO
* CPLEX
* MA57
* MA27
* OOQP
* MATLAB
* OCTAVE
* LATEX
* PYREPORT
-- Configuring done
-- Generating done
Output when running makepkg
-- The C compiler identification is GNU 4.8.1
-- The CXX compiler identification is GNU 4.8.1
-- Check for working C compiler: /usr/bin/colorgcc
-- Check for working C compiler: /usr/bin/colorgcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- The Fortran compiler identification is GNU
-- Check for working Fortran compiler: /usr/bin/gfortran
-- Check for working Fortran compiler: /usr/bin/gfortran -- works
-- Detecting Fortran compiler ABI info
-- Detecting Fortran compiler ABI info - done
-- Checking whether /usr/bin/gfortran supports Fortran 90
-- Checking whether /usr/bin/gfortran supports Fortran 90 -- yes
-- Flag needed for enabling C++11 features: -std=gnu++11
-- x86_64 architecture detected - setting flag -fPIC
-- Try OpenMP C flag = [-fopenmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Success
-- Try OpenMP CXX flag = [-fopenmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP CXX flag = [/openmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP CXX flag = [-Qopenmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP CXX flag = [-openmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP CXX flag = [ ]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP CXX flag = [-xopenmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP CXX flag = [+Oopenmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP CXX flag = [-qsmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP CXX flag = [-mp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Could NOT find OpenMP (missing: OpenMP_CXX_FLAGS)
-- Looking for Fortran sgemm
-- Looking for Fortran sgemm - found
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Found LibXml2: /usr/lib64/libxml2.so (found version "2.9.1")
-- A library with BLAS API found.
-- Looking for Fortran cheev
-- Looking for Fortran cheev - found
-- A library with LAPACK API found.
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.28")
-- checking for one of the modules 'ipopt'
-- Detected an IPOPT configuration without development headers. Build will proceed, but without callback functionality. To enable it, see https://github.com/casadi/casadi/wiki/enableIpoptCallback
-- Detected an IPOPT configuration without sIPOPT headers. Build will proceed, but without sIPOPT functionality.
-- Found IPOPT: ipopt;lapack;blas;m;dl;coinmumps;pthread;blas;gfortran;m;gcc_s;quadmath;coinmetis
-- Could not find KNITRO include dir
-- Could not find KNITRO library
-- Could not find CPLEX include dir
-- Could not find CPLEX libraries
-- Could not find MA57
-- MA57 libraries not found. Falling back to MA27
-- Could not find MA27
-- Could not find OOQP include dir
-- Could not find SNOPT include dir
-- Found Snopt libs: /usr/lib64/libf2c.a;-lpthread;/usr/lib64/liblapack.so;/usr/lib64/libblas.so;dl
-- Could not find MATLAB include dir
-- Could not find Matlab libs
-- Could not find SNOPT include dir
-- Found Snopt libs: /usr/lib64/libf2c.a;-lpthread;/usr/lib64/liblapack.so;/usr/lib64/libblas.so;dl
-- Could not find MATLAB include dir
-- Could not find Matlab libs
-- Found SWIG: /usr/bin/swig (found version "2.0.10")
-- Found PythonLibs: /usr/lib64/libpython2.7.so (found suitable version "2.7.5", minimum required is "2.7")
-- Python executable is /usr/bin/python2
-- numpy.get_include() is /usr/lib/python2.7/site-packages/numpy/core/include
-- Numpy path found: /usr/include/python2.7/numpy
-- Python libs: /usr/lib64/libpython2.7.so
-- Numpy includes: /usr/include/python2.7/numpy;/usr/include
-- Numpy libs: /usr/lib64/python2.7/site-packages/numpy/core/multiarray.so
-- Found PythonInterp: /usr/bin/python2 (found version "2.7.5")
-- Found Doxygen: /usr/bin/doxygen (found version "1.8.4")
-- Found DOXYFILE_IN: /usr/src/AUR/build/casadi/src/casadi/documentation/api-doc/Doxyfile.in
-- pyreport not found -- try 'easy_install pyreport'
-- The following features have been enabled:
* dynamic-loading , Compile with support for dynamic loading of generated functions (needed for ExternalFunction)
* using-c++11 , Using C++11 features (improves efficiency and is required for some examples).
* sundials-interface , Interface to the ODE/DAE integrator suite SUNDIALS.
* csparse-interface , Interface to the sparse direct linear solver CSparse.
* lapack-interface , Interface to LAPACK.
* ipopt-interface , Interface to the NLP solver Ipopt.
* qpoases-interface , Interface to the active-set QP solver qpOASES.
* dsdp-interface , Interface to the interior point SDP solver DSDP (requires BLAS and LAPACK).
-- The following OPTIONAL packages have been found:
* LibXml2
* BLAS
* Threads
* LAPACK
* PkgConfig
* IPOPT
* SWIG
* NUMPY
* PythonInterp
* Doxygen
-- The following features have been disabled:
* just-in-time , Just-in-time compiliation via the LLVM compiler framework.
* opencl-support , Enable just-in-time compiliation to CPUs and GPUs with OpenCL.
* get-ipopt , Download and build Ipopt.
* knitro-interface , Interface to the NLP solver KNITRO.
* cplex-interface , Interface to the QP solver CPLEX.
* ooqp-interface , Interface to the QP solver OOQP (requires BLAS).
* worhp-inteface , Interface to the NLP solver Worhp (requires LibXml2 headers).
-- The following OPTIONAL packages have not been found:
* OpenMP
* KNITRO
* CPLEX
* MA57
* MA27
* OOQP
* MATLAB
* OCTAVE
* LATEX
* PYREPORT
-- Configuring done
-- Generating doneWith a little creativity, you can actually do all that from the command line with a single command. It'll look a little crazy, but it can be done.
Whether the script exists on the local machine or not has zero to do with platform indpendence. You assumedly have to get the application onto the local machine, so including the script is not really an issue at all. However, you're talking about system independence, yet still wishing to run command line arguments? The two are mutually exclusive. -
How to run a 10g report from command line ?
Good Afternoon,
Please advise if there is a way to run a 10g report from command line.
We use 6i right now and our job scheduler runs reports using "D:\ORADEV6I\BIN\RWRUN60.EXE ..." executable in batch mode on a separate server. We plan to migrate to 10g Database, Forms, Reports. Is there a way to keep this functionality and create a "command" to address an report server and run a report?
Thank you,
DmitriSteps to take.
(1.) In command prompt type RWSERVER SERVER=repserver1 to star the rep server.
(2.) If you get "Javaw.exe The procedure entry point psoasyn could not be located in the dynamic link library orapls10.dll." error do one of the following
(a.) Type the full name for the server. D:\OracleDevR2\bin\rwserver SERVER=repserver1
or, if it does not work
(b.) Add D:\OracleDevR2\bin to the system env. variable PATH
(3.) Start OC4j
(4.) Now you can access the jobs using URL like:
http://192.161.11.143:8890/reports/rwservlet/showjobs?server=repserver1
where 192.161.11.143 is your machine's IP address. -
To run a report from command line, when using jdbc-odbc bridge
Hi,
How to run a report from command line, when using jdbc-odbc bridge?
Usually with tns, we do by "rwrun module=<> userid=<user>/<passwd>@tns".
with odbc, we do by "rwrun module=<> userid=<user>/<passwd>@odbc:DSN"
Please specify, what is command line arguments for jdbc-odbc bridge driver?
Environment : Oracle 9i Report Builder on WinNT
Database : Sybase
Regards,
RamananHello Ramanan,
Report Builder : connect JDBC Query in Report Builder is to through Connection Dialog in JDBC Query Editor. User can use a Sign on parameter (can use, default : P_JDBCPDS or can create new) to connect to JDBC Data Source. Connection once made will be mentioned and will be reused through out Reports Builder.
JDBC PDS allows user to connect one or more same or different kind of databases.
While running report through runtime or Server, user can pass the sign on parameter(connection string) value, like any other user parameter.
Syntax for connection string : <username>/<password>@databaseURL . The syntax of database part of connection string depend on the type of JDBC Driver used to connect to Data Source while designing the JDBC Query. databaseURL refer to the location of the database and its format depend on the JDBCPDS river selected in design time while creating the JDBC Query.
rwrun eg :
rwrun report=jdbc_odbc.rdf destype=file desname=output.html desformat=html P_JDBCPDS=scott/tiger@database
Server eg :
http://server.com:8888/servlet/RWServlet?server=MyReportServer+report=jdbc_odbc.rdf+destype=cache+desformat=html+P_JDBCPDS=scott/tiger@database
http :
Please see ORACLE_HOME/reports/conf/jdbcpds.conf for more information.
With Regards
Reports Team -
Error while running ADF-BC Test Suite from command line
Hi,
I have created a separate test project containing the Test Suite for the Model componenet of my ADF-BC application.
I need to run this test project separately from jmeter.
The tests run fine from Jdev, But when I package the test project into a jar and try to run from command line, I get the following error:
java.lang.NoClassDefFoundError: oracle/jbo/ApplicationModule
at com.oracle.cs.cap.module.applicationModule.ServiceAMFixture.<init>(ServiceAMFixture.java:36)
at com.oracle.cs.cap.module.applicationModule.ServiceAMFixture.<clinit>(ServiceAMFixture.java:15)
at com.oracle.cs.cap.module.view.EntitlementReportDurationViewVO.EntitlementReportDurationViewVOTest.<init>(EntitlementReportDurationViewVOTest.java:11)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.junit.internal.runners.JUnit4ClassRunner.createTest(JUnit4ClassRunner.java:72)
at org.junit.internal.runners.JUnit4ClassRunner.invokeTestMethod(JUnit4ClassRunner.java:79)
at org.junit.internal.runners.JUnit4ClassRunner.runMethods(JUnit4ClassRunner.java:51)
at org.junit.internal.runners.JUnit4ClassRunner$1.run(JUnit4ClassRunner.java:44)
at org.junit.internal.runners.ClassRoadie.runUnprotected(ClassRoadie.java:27)
at org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java:37)
at org.junit.internal.runners.JUnit4ClassRunner.run(JUnit4ClassRunner.java:42)
at org.junit.internal.runners.CompositeRunner.runChildren(CompositeRunner.java:33)
at org.junit.runners.Suite.access$000(Suite.java:26)
at org.junit.runners.Suite$1.run(Suite.java:93)
at org.junit.internal.runners.ClassRoadie.runUnprotected(ClassRoadie.java:27)
at org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java:37)
at org.junit.runners.Suite.run(Suite.java:91)
at org.junit.internal.runners.CompositeRunner.runChildren(CompositeRunner.java:33)
at org.junit.internal.runners.CompositeRunner.run(CompositeRunner.java:28)
at org.junit.runner.JUnitCore.run(JUnitCore.java:130)
at org.junit.runner.JUnitCore.run(JUnitCore.java:109)
at org.junit.runner.JUnitCore.run(JUnitCore.java:100)
at org.junit.runner.JUnitCore.runMain(JUnitCore.java:81)
at org.junit.runner.JUnitCore.main(JUnitCore.java:44)
Caused by: java.lang.ClassNotFoundException: oracle.jbo.ApplicationModule
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 27 more
The Test project jar is created as ADF Library JAR File with Model.jpr as the dependent project. This takes care of project class dependencies
All the adf library dependencies are added to the manifest file of the Test Project jar referring to a location lib/ in the jar file directory.
I tried creating the ApplicationModule using both Configuration class (Configuration.createRootApplicationModule) as well as using the JDBC Connection String but both fail when I run the test cases independently from jmeter.
Anybody came across such an error? Please help.
Thanks,
SapnaHi Timo,
Im using JDev version 11.1.1.6.0.
I checked the class path on the jdev console. All the library references are mentioned in the manifest.mf classpath of the test project like below:
Manifest-Version: 1.0
Class-Path: lib/identitystore.jar
lib/adfm.jar
lib/groovy-all-1.6.3.jar
lib/adftransactionsdt.jar
lib/adf-dt-at-rt.jar
lib/adfdt_common.jar
lib/adflibrary.jar
lib/xmlparserv2.jar
lib/db-ca.jar
lib/jdev-cm.jar
lib/ojmisc.jar
lib/commons-el.jar
lib/jsp-el-api.jar
etc...
So I expect the library references should be resolved looking at the manifest file.
Another set of entries that I see in the jdev classpath are related to the Model project which is under test.
-classpath
D:\CurrentProject_1\16_7_2013_3pm\11_7_2013\.adf;
D:\CurrentProject_1\16_7_2013_3pm\11_7_2013\Model\classes;
How do I put these entries into my class path? Will it be sufficient if I add the Model.jar into my test project classpath?
Thanks,
Sapna -
Running FlexUnit tests from command line
Sorry if that has been posted before: I searched best I could and nothing came up.
I am interested in building and running my unit tests from the command line so we can add it to a nightly build process.
I am *very* new to all this: basically I picked up Adobe Flash Builder 4 a month ago and I have done *everything* inside that IDE: writing code, building, testing, running.
I looked into at least how to build something from the command line, I found this:
http://help.adobe.com/en_US/flashbuilder/using/WSbde04e3d3e6474c4-59108b2e1215eb9d5e4-8000 .html
Can't get past this error:
Buildfile: /Users/dbanks/build_test.xml
BUILD FAILED
Target "FlexUnitApplication" does not exist in the project "null".
Total time: 0 seconds
Adobe Flash Builder 4:
An error has occurred. See the log file
/Users/dbanks/Documents/Adobe Flash Builder 4/.metadata/.log.
Plus, even if I got this going, I am just building the swf. I also want to run it and capture the output in some meaningful way that can be read/evaluated/acted on.
FWIW, the script/xml I am using to try to build:
build_test.xml:
<?xml version="1.0"?>
<project default="main">
<target name="main">
<fb.exportReleaseBuild project="NightclubMogul" />
</target>
</project>
execute_build_test.sh:
WORKSPACE="$HOME/Documents/AdobeFlashBuilder4"
# works with either FlashBuilder.app or Eclipse.app
"/Applications/AdobeFlashBuilder4" \
--launcher.suppressErrors \
-noSplash \
-application org.eclipse.ant.core.antRunner \
-data "$WORKSPACE" \
-file "/Users/dbanks/build_test.xml" FlexUnitApplication
I am not clear what in here is actually supposed to point to where my project lives: it's off in some directory somewhere. I see that I am pointing to a workspace (Documents/AdobeFlashBuilder4) but when I poke around in there I don't see anything connecting back to the directories where the code lives.
Any help would be great: getting the tests to build from command line, then getting them to run.C:\>sqlplus @myscript
That would be the easiest variation
C:\>sqlplus user/passwd@tns_alias @myscript
would be an often used variation
And then there is of course the version with parameter passing:
C:\>sqlplus user/passwd@tns_alias @myscript param1 ... paramx
Dunno about MSBuild -
Import or load a new logo from the external system
Hi all...
I want to import or load a new logo from the ext system helps to generate for my ALV report program(for top-of-page)......the one from SE78 is not working for me if i do import or with pre-defined one......
pls revert me on urgent basis....(help need esp., for ALV report generation)
thanks
sankarHi,
In the transaction OAOR, you should be able to insert your company Logo.
GOTO - OAOR (Business Document Navigator)
Give Class Name - PICTURES Class Type - OT..... then Execute
It will show you the list, then select ENJOYSAP_LOGO.
On that list, you will find one control with a "create" tab.
Click std. doc types.
Select SCREEN and double-click.
It will push FILE selection screen.
Select your company logo (.gif) and press OK.
It will ask for a description- for instance: "company logo".
It will let you know your doc has been stored successfully.
You can find your logo under ENJOYSAP_LOGO->Screen->company logo.
Just run your ALV program, you should find your company logo in place of the EnjoySAP logo.
FORM TOP-OF-PAGE.
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
IT_LIST_COMMENTARY = HEADING[]
I_LOGO = 'ENJOYSAP_LOGO'
I_END_OF_LIST_GRID ='GT_LIST_TOP_OF_PAGE'.
ENDFORM. "TOP-OF-PAGE
Here 'ENJOYSAP_LOGO' will replace by ur created logo.
n pls reply me.
Refer this link
http://www.sapdevelopment.co.uk/reporting/alv/alvgrid_enhanced.htm
http://www.sap-img.com/abap/alv-logo.htm
http://www.sap-img.com/fu002.htm
reward if it helps..
Regards,
Omkar. -
Problem with tokenized input from command line
I am trying to take an input from the command line, parse it to tokens and perform whatever operation is needed depending on the name of the token, on a binary tree of stacks for example, if i type 1 2 1 3 printLevelOrder, then the root of the tree should have 3, 2,1 in the stack, the left child should have 1 and the right child should be empty. and then a level order print of the tree should be performed.
however what is happening when i run this code is the numbers are being put into the right stacks of the tree, but any commands such as printLevelOrder or PrintPopRoot are entering the code that is for placing numbers onto the stack instead of executing that command and skipping past this piece of code.
so my question is, why is the if statement if (word =="printLevelOrder") not being executed when thats whats in the word ?
example input and output shown below code fragment.
try {
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
String line = "";
while (line != "***") {
System.out.print("> prompt ");
line = in.readLine();
StringTokenizer tokenizer = new StringTokenizer(line," ");
String word = new String();
while (tokenizer.hasMoreTokens()) {
word = tokenizer.nextToken();
boolean notCommand = true;
if (word =="printLevelOrder") {
theTree.printLevelOrder();
System.out.println("(word ==printLevelOrder)");
notCommand=false;
if (word == "printPopLevelOrder") {
theTree.printPopLevelOrder();
notCommand=false;
if (word == "printPopInorder") {
theTree.printPopInorder();
notCommand=false;
if (word == "printPopPreorder") {
theTree.printPopPreorder();
notCommand=false;
if (word == "printPopRoot") {
theTree.printPopRoot();
notCommand=false;
if (word == "***") {
notCommand=false;
if (notCommand == true) {
System.out.println("(notCommand == true)");
boolean notPlaced = true;
int v = 1;
while ((notPlaced==true) && (v < theTree.size())) {
if (theTree.element(v).isEmpty()) {
theTree.element(v).push(Integer.valueOf(word));
System.out.println("Inserting"+word);
System.out.println("in empty stack at location: "+v);
notPlaced=false;
if (notPlaced==true) {
if ( Integer.valueOf(word) >= Integer.valueOf( theTree.element(v).top().toString() ) ) {
theTree.element(v).push(Integer.valueOf(word));
System.out.println("Inserting"+word);
System.out.println("in stack at location: "+v);
notPlaced=false;
v++;
}valid inputs: int value, printLevelOrder, printPopLevelOrder, printPopInorder, p
rintPopPreorder, printPopRoot, *** to quit
prompt 1 3 2 4 2 printLevelOrder(notCommand == true)
Inserting1
in empty stack at location: 1
(notCommand == true)
Inserting3
in stack at location: 1
(notCommand == true)
Inserting2
in empty stack at location: 2
(notCommand == true)
Inserting4
in stack at location: 1
(notCommand == true)
Inserting2
in stack at location: 2
(notCommand == true)
Exception in thread "main" java.lang.NumberFormatException: For input string: "printLevelOrder"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
at java.lang.Integer.parseInt(Integer.java:447)
at java.lang.Integer.valueOf(Integer.java:553)
at TreeStack.main(TreeStack.java:73)
Press any key to continue . . .lol aww, shame that you forgot to do that. i had 10 / 10 for mine, and seing as the deadline is now well and trully over,
here is the entire source for anybody who was following the discussion or whatever and wanted to experiment.
additional files needed >
http://users.cs.cf.ac.uk/Paul.Rosin/CM0212/Stack.java
http://users.cs.cf.ac.uk/Paul.Rosin/CM0212/ArrayStack.java
http://users.cs.cf.ac.uk/Paul.Rosin/CM0212/StackEmptyException.java
http://users.cs.cf.ac.uk/Paul.Rosin/CM0212/StackFullException.java
/*TreeStack.java - reads command line input of values and assigns them to stacks in a binary tree and performs
operations on the ADT. valid inputs: <int>, printLevelOrder, printPopLevelOrder,
printPopInorder, printPopPreOrder, printPopRoot. Terminates on invalid input.
Written by George St. Clair.
S/N:0208456 22/11/2005
import java.util.Vector;
import java.io.*;
import java.util.StringTokenizer;
public class TreeStack {
private final int TREE_CAPACITY = 7 + 1;
private final int STACK_CAPACITY = 10;
Vector tree = new Vector(TREE_CAPACITY) ;
//collect input from command line, add values to stacks at nodes of the teee
//and perform required operations on the treestack
public static void main (String [] args) {
//create a tree of stacks
TreeStack theTree = new TreeStack ();
try {
//collect standard input
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
String line = "";
while (line != null) {
System.out.print("");
line = in.readLine();
//tokenise input
StringTokenizer tokenizer = new StringTokenizer(line," ");
String word = new String();
while (tokenizer.hasMoreTokens()) {
//assign word to the token
word = tokenizer.nextToken();
boolean notCommand = true;
//perform operation on treestack depending on what word is
if (word.equals("printLevelOrder")) {
System.out.println("printLevelOrder");
theTree.printLevelOrder();
notCommand=false;
if (word.equals("printPopLevelOrder")) {
System.out.println("printPopLevelOrder");
theTree.printPopLevelOrder();
notCommand=false;
if (word.equals("printPopInorder")) {
System.out.println("printPopInorder");
theTree.printPopInorder();
notCommand=false;
if (word.equals("printPopPreorder")) {
System.out.println("printPopPreorder");
theTree.printPopPreorder();
notCommand=false;
if (word.equals("printPopRoot")) {
System.out.println("printPopRoot");
theTree.printPopRoot();
notCommand=false;
//if word was not a command it must be a number
if (notCommand == true) {
boolean notPlaced = true;
int v = 1;
//starting at the root, find suitable place for number
while ((notPlaced==true) && (v < theTree.size())) {
//if the stack at v is empty, number goes here
if (theTree.element(v).isEmpty()) {
theTree.element(v).push(Integer.valueOf(word));
System.out.println("inserting: "+word);
System.out.println("in empty stack at location: "+(v-1));
notPlaced=false;
//if the stack is not empty
if (notPlaced==true) {
//if the value on the top of the stack is smaller than number, number goes onto the stack
if ( Integer.valueOf(word) > Integer.valueOf( theTree.element(v).top().toString() ) ) {
theTree.element(v).push(Integer.valueOf(word));
System.out.println("inserting: "+word);
System.out.println("in stack at location: "+(v-1));
notPlaced=false;
//if that node was no good, check the next one for suitability
v++;
catch (Exception e) {
//occurs when user inputs something that is neither a command, or a number, or upon EOF, or stack is full
public TreeStack () {
//create the TreeStack ADT by adding stacks in the vector, note vector 0 is instantiated but not used.
for (int i = 1;i<=TREE_CAPACITY;i++)
tree.add(new ArrayStack(STACK_CAPACITY));
public int size() {
//return the size of the tree +1 (as 0 is not used)
return tree.size();
public ArrayStack element (int v) {
//return the ArrayStack at v
return (ArrayStack)tree.get(v);
public int leftChild (int v ) {
//return left child of v
return v*2;
public int rightChild (int v ) {
//return the right child of v
return v*2+1;
public boolean children (int v ) {
//search for children of v and return true if one exists
for (int i =v;i<size();i++) {
if (i/2==v ) {
//left child found at i
return true;
if ((i-1)/2==v ) {
//right child found at i
return true;
//no children found
return false;
public boolean isInternal (int v ) {
//test whether node v is internal (has children)
if (children (v)== true) {
//has children
return true;
return false;
//print the top value in each stack encountered on a level-order traversal of tree
public void printLevelOrder() {
//for every node of tree v
for (int v = 1;v<size();v++) {
if (!element(v).isEmpty() ) {
//print the top value in stack v
System.out.println(" "+element(v).top());
else {
//stack at v is empty
System.out.println(" -");
//pop off and print the top value in each stack encountered on a level-order traversal of tree
public void printPopLevelOrder () {
//pop off and print the top value in stack v
for (int v = 1;v<size();v++) {
//for each node of tree v
if (!element(v).isEmpty() ) {
//if v isnt empty print the top value in stack v
System.out.println(" "+element(v).top());
//pop the top value in the stack at v
element(v).pop();
else {
//stack at v is empty
System.out.println(" -");
//pop off and print the top value in each stack encountered on an in-order traversal of tree
public void printPopInorder () {
printPopInorder (1);
public void printPopInorder (int v) {
boolean isInternal = false;
if (isInternal (v)) {
//use a boolean for isInternal to save on running the method twice
isInternal = true;
//recursively search left subtree
printPopInorder (leftChild(v));
//pop off and print the top value at v
if (element(v).isEmpty() ) {
//stack at v is empty
System.out.println(" -");
else {
//if v isnt empty print the top value in stack v then pop
System.out.println(" "+element(v).top());
element(v).pop();
if (isInternal ) {
//recursively search right subtree
printPopInorder (rightChild(v));
//pop off and print the top value in each stack encountered on an pre-order traversal of tree
public void printPopPreorder() {
printPopPreorder(1);
public void printPopPreorder(int v) {
//pop off and print the top value at v
if (!element(v).isEmpty() ) {
//if v isnt empty print the top value in stack v then pop
System.out.println(" "+element(v).top());
element(v).pop();
else {
//stack at v is empty
System.out.println(" -");
if (isInternal (v)) {
//recursively search left and right subtrees
printPopPreorder (leftChild(v));
printPopPreorder (rightChild(v));
//pop off and print all values from the stack at the root
public void printPopRoot (){
//while the root stack has values left
while (!element(1).isEmpty()) {
//print, then pop
System.out.println(" "+element(1).top());
element(1).pop();
} -
How to open an online pdf from command-line
Hi,
I'm trying to get my application to open a pdf file from an url like http://xxxx.dk/xxx.aspx?CID=xxx
it work from inside adobe reader so the pdf file is a functionel file, but when i try to open it from command line like: AcroRd32.exe /n /A "pagemode=none" "http://xxxx.dk/xxx.aspx?CID=xxx" i keep getting an error telling me "There was an error opening this document. The filename, directory name, or volume label syntax is incorrect"
does anyone have an idea of what i need to do? i could also make a public test if someone needs to see the issue "live"it works with the browser, so no problems there.. i just wanted the pdf file to open in adobe reader instead of browser window, as it opens from a windows application.. but perhaps i need to look more into merging a embedded pdf viewer in the application instead..
-
Restart/start/stop network from command line
Hi all...
How do I restart/start or stop my network from command line? I red somewhere about using netstart, but I guess the article was refering to OpenBSD and not OS X...
So.. any hints?
Thanks.Hey You are right there...
OKK..To my knowledge, you can start an application, from the servlet in a thread. But stopping a thread from outside is not safe and even sun doesn't advice.
1. Starting a thread : you can start your program using an Runtime class. But your client program can see if the server port is open or not. So after starting the server program, through servlet, execute the client program. OR you can log every command/step in to a log file, and start the server program and see the log, where currently the program is waiting, so you can check, if the server program has exited.
2. Stoping an application i.e a thread is a tricky thing. One i would suggest is, send data to the server socket with your pass code and the command "Shutdown" with a sequence which will not repeat in the data communication. If the first command is your passcode and "Shutdown" you can kill the server thread from inside the server application. To make this possible, every thing the new connection is accepted, you have to validate the first line is this your command to shutdown.
and repeat the step 1.
Hope this gives you a little idea to proceed. if not let me know...
Cheers
Venkat -
Calling this simple servlet from command line -- ERRORS!
Below is my servlet. I call from command line via:
java BatchServlet
and I get:
Exception in thread "main" java.lang.NoClassDefFoundError: BatchServlet
IS there a reason for this
import java.io.IOException;
import javax.servlet.*;
import javax.servlet.http.*;
public class BatchServlet extends HttpServlet implements Runnable{
static Thread t = null;
public void init(ServletConfig c) throws ServletException{
super.init(c);
if (t==null){
t = new Thread(this);
t.start();
public void run(){
while (true){
try{
Thread.sleep(5000);
}catch (InterruptedException ie){
ie.printStackTrace();
System.out.println("Wake up");Same error with this little prog.....
Notice main method
package wch.util;
import java.io.IOException;
import javax.servlet.*;
import javax.servlet.http.*;
public class test {
public void main(){
System.out.println("test");
Maybe you are looking for
-
WBS Planned Cost on Sales order
Hi Ajay and Experts, We have created WBS element and assiged on Sales order line item in Account assigt tab (Accont *** cat M and Valuation M). Is there any way to get the corresponding Planned cost of WBS on Sales order line item when WBS is assigne
-
Error while changing password after Forgot password
I have integrated OAM and OAAM in my environment. This issue occurs while accessing a protected resource. After clicking on forgot password and correctly answering the challenge questions, when I change the password, it shows me an error message: "Th
-
Invoking a BPEL process from an email
Hi I have a BPEL process where i have two flows. Aysnc flow followed by a Sync flow. 1) An Async flow where an email is being sent to user - The process stops here unless user clicks the activation link provided in his email. 2) The user clicks an em
-
Error in Message-Mapping transformation
I'm getting an error while processing the data from JDBC to SAP through IDOC's. During the application mapping com/sap/xi/tf/_MM_HRMD_ a com.sap.aii.utilxi.misc.api.BaseRuntimeException was thrown: RuntimeException in Message-Mapping transformatio~ w
-
Video Converter + video compatabil
I have a Zen Vision : M 30Gb and I recently downloaded every possible firmware/application for my player. No problems with my firmware yet, but with an application. My main problem is the video converter: I downloaded via Zencast (the newest) a few f