Compiling packages problem???
Thanks for checking this out, noticed there hadn't been a similar compiling question for
at least 40 pages, so figured I should contribute!!
I am trying to compile a package class with six other classes added as part of the
same package and instantiated withing tabbed panes within the first class.
info
JDK: j2sdk1.4.0-beta3
path: path=c:\windows;c:\windows;c:\windows\command\j2sdk1.4.0-beta3\bin
Folder/directory : c:\Divelog
javac is accessed by: c:\j2sdk1.4.0-beta3\bin\javac
package: divelog
file: DiveLog.java
-public class DiveLog extends JFrame
six other files are Welcome.java, Diver.java, Dives.java, Statistics.java, Website.java,
Resources.java
-all are started with the package divelog; declaration
- all are called within a populateTabbedPane() in the DiveLog file and class.
all .java files can be seen when I enter c:\Divelog>dir
problem:
entering c:\j2sdk1.4.0-beta3\bin\javac DiveLog.java
returns six errors of type : cannot resolve symbol
symbol: class Welcome
location: class divelog.Divelog
new Welcome
I understand that this is not the way to compile a package so tryed lots of different
things as suggested by the troubleshooting tutorial, the most effective are
c:\j2sdk1.4.0-beta3\bin\javac -classpath c:\Divelog.divelog.java
" \javac -classpath c:\Divelog.divelog
\javac -classpath c:\Divelog
all of these pause for about 5 seconds then returns to the c:\Divelog> (as if there
were no errors)
enter dir to see if they have been compiled, and there is no .class versions of these
files.
entering
c:\j2sdk1.4.0-beta3\bin\javac -classpath c:\Divelog\ DiveLog.java or \ Divelog or \
Divelog.DiveLog
(with the space after the \ ) returns the six error messages above.
I am positive there is something very simple I am missing, could someone please help
me out, It would be greatly appreciated, I really like this java programming, but when
you run into a hurdle like this, It gets very frustrating. Thanks alot in advance!!!
Thanks alot eric, I spent about 15 hours trying to work that out. Tthat helped alot I have a couple of quick follow up questions
1. in the classpath \divelog/*.java what does the /*.java do is that the call for the entirity of the divelog
package.
2. all of the six sub classes (welcome, Resources, etc) all compiled and are now in the directory of the
c:\Divelog>
except that the main class/file DiveLog will not itself, and is not listed as a DiveLog.class,
there is still only a DiveLog.java even thought the others in the package all have become .class.
Is there any way I can compile this one file on it's own, or how do I get it to compile into a .class file??
3. to run the application would I then enter
c:\Divelog>c:\j2sdk1.4.0-beta3\bin\java -classpath \divelog.?
Once again, I really appreciate your help, that was great!
Similar Messages
-
Help needed with an AIR language packaging problem
I have a game that includes resources for the Hebrew language, however the <supportedLanguages/> tag supports only ISO 639-1 languages, and Hebrew is not listed; in fact I got a compiler/packaging error when I tried to use "he". Currently I am getting a notice in Google play that warns me this game might not be packaged correctly: "You translated the store listing into Hebrew but not the APK." Is there a way around this problem, perhaps some manual editing of some files somewhere? I'd like to publish the same app to the Apple app store, I imagine they will be even less lenient there.
We are using Flash Builder 4.7 and AIR 3.7 on Windows 7 x64 SP1. Any assistance would be appreciated.It can be done for iOS. Check here: http://forums.adobe.com/message/5140906
Don't know about Android. -
Execution of Immediate SQL in compiled package in two versions of SQL*PLUS
A peculiar problem has risen in our database.
Execution of Immediate SQL in compiled package in two versions of SQLPLUS gives different results
We have a compiled package with two procedures that contain immediate SQL statements, and these are:
+PROC_DELETE_ROWS+
+ -- This immediate sql deletes unreferenced Document Types from the DOC_REF_TYPE table+
+ delete from doc_ref_type t where exists (select 1 from PROARC_DOC_REF_TYPE_VW d where d.doc_ref_type = t.doc_ref_type)+
+ and not exists (select 1 from doc_ref d where d.doc_ref_type = t.doc_ref_type)+
+ and doc_ref_type not in (select doc_ref_type from eis_doc_ref_type)+
+ and doc_ref_type not in (select eis_doc_ref_type from eis_doc_ref_type)+
+PROC_ADD_NEW_ROWS+
+ -- Drop the temporary table+
+ drop table TMP_PROARC_DOC_REF_TYPE+
+ -- Create a temporary table+
+ create table tmp_PROARC_DOC_REF_TYPE as+
+ select DOC_REF_TYPE, substr(DOC_REF_TYPE_DESC,1,100) as DOC_REF_TYPE_DESC+
+ from PROARC_DOC_REF_TYPE_VW+
+ -- Insert document types that do not exist in the DOC_REF_TYPE table+
+ insert into doc_ref_type t (DOC_REF_TYPE, DOC_REF_TYPE_DESC)+
+ select distinct DOC_REF_TYPE, DOC_REF_TYPE_DESC from tmp_PROARC_DOC_REF_TYPE s+
+ where not exists (select 1 from doc_ref_type t where t.doc_ref_type = s.doc_ref_type)+
I am using the following test script:
+Exec mypackage.proc_delete_rows;+
+Commit;+
+Select count(*) from DOC_REF_TYPES;+
+Exec mypackage.proc_add_new_rows;+
+Commit;+
+Select count(*) from DOC_REF_TYPES;+We have a Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit
I am using SQL*Plus: Release 8.1.7.0.0
The test script is working as expected.
Count after delete =155
Count after insert = 511
but when I use another computer with SQL*Plus: Release 10.x
The Test script returns the following
Count after delete =155
Count after insert =155
The same is happening when I am running the scripts as a scheduled job.
QUESTION:
I believe I have found a fix for the problem though. By changing tmp_PROARC_DOC_REF_TYPE in the insert statement to all upper case, the script is running in both environments apparently. But how is this possible? I am executing a compiled package in the database. The session shell should have no impact on the behaveour of the procedure I am calling. What causes this?
Edited by: Reon on Jun 16, 2011 4:44 AM1) I am using the same user (PANDORA)
2) (PANDORA) for both
3) I am actually not handling any errors. Just skipping any error altogether. I'll check to see what exceptions are raised, and come back.
I have also noticed that SQL/PLUS is not the culprit here. If I use SQLTools 1.5 to run the script, the same thing happens. So it has to do something with the connection or session environment that is inheritet to both clients.
The CODEZ:_
procedure add_doc_types IS
sqlstr VARCHAR2(2000);
begin
BEGIN
sqlstr := 'drop table TMP_PROARC_DOC_REF_TYPE';
EXECUTE IMMEDIATE sqlstr;
EXCEPTION
WHEN OTHERS THEN
null;
END;
BEGIN
sqlstr := 'create table tmp_PROARC_DOC_REF_TYPE as select DOC_REF_TYPE, substr(DOC_REF_TYPE_DESC,1,100) as DOC_REF_TYPE_DESC from PROARC_DOC_REF_TYPE_VW';
EXECUTE IMMEDIATE sqlstr;
EXCEPTION
WHEN OTHERS THEN
null;
END;
BEGIN
sqlstr := 'insert into doc_ref_type t (DOC_REF_TYPE, DOC_REF_TYPE_DESC)
select distinct DOC_REF_TYPE, DOC_REF_TYPE_DESC from TMP_PROARC_DOC_REF_TYPE s
where not exists (select 1 from doc_ref_type t where t.doc_ref_type = s.doc_ref_type)';
EXECUTE IMMEDIATE sqlstr;
sqlstr := 'update doc_ref_type t set DOC_REF_TYPE_DESC = (
select DOC_REF_TYPE_DESC from tmp_PROARC_DOC_REF_TYPE s
where t.doc_ref_type = s.doc_ref_type)
where exists (select 1 from tmp_PROARC_DOC_REF_TYPE s where t.doc_ref_type = s.doc_ref_type)';
EXECUTE IMMEDIATE sqlstr;
EXCEPTION
WHEN OTHERS THEN
null;
END;
end add_doc_types;
procedure delete_doc_types IS
sqlstr VARCHAR2(2000);
BEGIN
sqlstr := 'delete from doc_ref_type t where exists (select 1 from PROARC_DOC_REF_TYPE_VW d where d.doc_ref_type = t.doc_ref_type)
and not exists (select 1 from doc_ref d where d.doc_ref_type = t.doc_ref_type)
and doc_ref_type not in (select doc_ref_type from eis_doc_ref_type)
and doc_ref_type not in (select eis_doc_ref_type from eis_doc_ref_type)';
EXECUTE IMMEDIATE sqlstr;
EXCEPTION
WHEN OTHERS THEN
null;
end delete_doc_types;Edited by: Reon on Jun 16, 2011 2:01 AM -
Hi all,
I have problem on compiling packages.
Here is the structure of the directory
1:path is c:\java
2:Created a directory inside java folder called test1 as parent directory,then I created a new folder calledd test2 inside the test1.(c:\java\test1\test2).
3. I have created java class called House.java in which I have declared a package
package test1.test2;4.I have created the main class HouseMain.java with
code]package test1.test2;
5.I have copied all the java class in the folder test2.
I cant get it compiled even after setting the classpath.
Can anyone help me please how to compile ?.
Thank youHi all,
I have problem on compiling packages.
Here is the structure of the directory
1:path is c:\java
2:Created a directory inside java folder called
test1 as parent directory,then I created a new
folder calledd test2 inside the
test1.(c:\java\test1\test2).
. I have created java class called House.java in
which I have declared a package
package test1.test2;4.I have created the main class HouseMain.java with
code]package test1.test2;I have copied all the java class in the folder
test2.
I cant get it compiled even after setting the classpath.
Can anyone help me please how to compile ?.
Thank youTry this:
Navigate to c:\java and type exactly this:
javac -classpath . -d . test1\test2\*.javaNote the "dot" after both -classpath and -d. Read the javac docs to make sure you understand what those mean.
You should see all the .class files in the same directory as your .java files. (Not the best idea, but easy for now.)
To run, type this:
java -classpath . test1.test2.HouseMain% -
Trouble compiling package with JDK 1.4
Hi,
I just installed JDK 1.4 on a new machine, now I have trouble running compile scripts that used to work on my old machine. The old an new are configured with Win 2000. The following compiles without problem:
javac -classpath "..." -d "..." "c:\.....\com\...\some package\MyClass.java"
Changing this statemetn to:
javac -classpath "..." -d "..." "c:\.....\com\...\some package\*.java"
should compile all Java files in 'some package', instead what I get is the following error message:
error: cannot read: c:\.....\com\...\some package\*.java
The documentation says that this should still work. Anyone aware of changes in 1.4 that could cause this problem?
Thanks for respondingAs a work-around, you can use some Unix-styled shell (that is, command processor) which expands the *.expression into the list of the matching file names, thus releaving javac from this task. (Caveat: directory names with a space inside will cause problems.)
I can recommend the Cygnus package (including the command processor "bash") or "MinGW", the Minimalist GNU For Windows with its simpler sh:
http://www.mingw.org/
ftp://ftp.franken.de/pub/win32/develop/gnuwin32/mingw32/porters/Mikey/ -
New programmer- how do i compile package members?
im learning java using sams teach yourself java in 21 days. its really good compared to other ive tried but i was having a problem on day 6. i couldnt compile package members successfully. i didnt undestand the book instruction so instead of compiling this way:
C:\noam\java> c:\java\jdk1.5.0_06\bin\javac classname.java
i did it this way:
C:\java\noam\org\cadenhead\ecommerce> c:\java\jdk1.5.0_06\bin\javac classname.java
this worked but other classes inside the package could not recognize this class, though classes outside the package could.
how do i compile package members?
thnx!I solved the problem...! I have no idea how but it worked this time!
thnx anyway for everybody who tried to help! -
30EA1: PLS-00172 when compiling package body
Hi there,
I'm having a strange bug when compiling a package body in SQL Developer 3.0 EA1, while the same package body compiles well in production version (2.1).
The error code returned is Error: ORA-06550: line 1, column 64: PLS-00172: string literal too long
Does anyone have the same problems?yes: SQL*Developer 3EA1 - Not Compiling package Body
Hope that helps,
K. -
[SOLVED] Strange error while compiling packages via AUR
I've been facing this error while compiling packages via AUR. I'm also posting the output of my /etc/makepkg.conf
Error
==> Starting build()...
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether cc supports -O2... yes
checking for g++... g++
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for GSTREAMER... yes
checking for GSTREAMER_GTK... yes
checking for XOpenDisplay in -lX11... yes
checking for ncursesw5-config... /usr/bin/ncursesw5-config
checking for initscr in -lncurses... yes
checking whether gcc supports -Wall... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating docs/Makefile
config.status: creating config.h
config.status: executing depfiles commands
fatal: Not a git repository (or any of the parent directories): .git
CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh /tmp/yaourt-tmp-hellknight/aur-gst123/src/gst123-0.2.0/build-aux/missing --run aclocal-1.11 -Wno-portability
sh: autom4te: command not found
aclocal-1.11: autom4te failed with exit status: 127
make: *** [aclocal.m4] Error 1
==> ERROR: A failure occurred in build().
Aborting...
==> ERROR: Makepkg was unable to build gst123.
==> Restart building gst123 ? [y/N]
==> -------------------------------
==>
/etc/makepkg.conf
# /etc/makepkg.conf
# SOURCE ACQUISITION
#-- The download utilities that makepkg should use to acquire sources
# Format: 'protocol::agent'
DLAGENTS=('ftp::/usr/bin/wget -c --passive-ftp -t 3 --waitretry=3 -O %o %u'
'http::/usr/bin/wget -c -t 3 --waitretry=3 -O %o %u'
'https::/usr/bin/wget -c -t 3 --waitretry=3 --no-check-certificate -O %o %u'
'rsync::/usr/bin/rsync -z %u %o'
'scp::/usr/bin/scp -C %u %o')
# Other common tools:
# /usr/bin/snarf
# /usr/bin/lftpget -c
# /usr/bin/curl
# ARCHITECTURE, COMPILE FLAGS
CARCH="x86_64"
CHOST="x86_64-unknown-linux-gnu"
#-- Exclusive: will only run on x86_64
# -march (or -mcpu) builds exclusively for an architecture
# -mtune optimizes for an architecture, but builds for whole processor family
CFLAGS="-march=amdfam10 -mtune=generic -O2 -pipe"
CXXFLAGS="${CFLAGS}"
LDFLAGS="-Wl,--hash-style=gnu -Wl,--as-needed"
#-- Make Flags: change this for DistCC/SMP systems
MAKEFLAGS="-j8"
# BUILD ENVIRONMENT
# Defaults: BUILDENV=(fakeroot !distcc color !ccache)
# A negated environment option will do the opposite of the comments below.
#-- fakeroot: Allow building packages as a non-root user
#-- distcc: Use the Distributed C/C++/ObjC compiler
#-- color: Colorize output messages
#-- ccache: Use ccache to cache compilation
BUILDENV=(fakeroot !distcc color !ccache)
#-- If using DistCC, your MAKEFLAGS will also need modification. In addition,
#-- specify a space-delimited list of hosts running in the DistCC cluster.
#DISTCC_HOSTS=""
# GLOBAL PACKAGE OPTIONS
# These are default values for the options=() settings
# Default: OPTIONS=(strip docs libtool emptydirs zipman purge)
# A negated option will do the opposite of the comments below.
#-- strip: Strip symbols from binaries/libraries in STRIP_DIRS
#-- docs: Save doc directories specified by DOC_DIRS
#-- libtool: Leave libtool (.la) files in packages
#-- emptydirs: Leave empty directories in packages
#-- zipman: Compress manual (man and info) pages in MAN_DIRS with gzip
#-- purge: Remove files specified by PURGE_TARGETS
OPTIONS=(strip docs libtool emptydirs zipman purge)
#-- File integrity checks to use. Valid: md5, sha1, sha256, sha384, sha512
INTEGRITY_CHECK=(md5)
#-- Options to be used when stripping binaries. See `man strip' for details.
STRIP_BINARIES="--strip-all"
#-- Options to be used when stripping shared libraries. See `man strip' for details.
STRIP_SHARED="--strip-unneeded"
#-- Options to be used when stripping static libraries. See `man strip' for details.
STRIP_STATIC="--strip-debug"
#-- Manual (man and info) directories to compress (if zipman is specified)
MAN_DIRS=({usr{,/local}{,/share},opt/*}/{man,info})
#-- Doc directories to remove (if !docs is specified)
DOC_DIRS=(usr/{,local/}{,share/}{doc,gtk-doc} opt/*/{doc,gtk-doc})
#-- Directories to be searched for the strip option (if strip is specified)
STRIP_DIRS=(bin lib sbin usr/{bin,lib,sbin,local/{bin,lib,sbin}} opt/*/{bin,lib,sbin})
#-- Files to be removed from all packages (if purge is specified)
PURGE_TARGETS=(usr/{,share}/info/dir .packlist *.pod)
# PACKAGE OUTPUT
# Default: put built package and cached source in build directory
#-- Destination: specify a fixed directory where all packages will be placed
#PKGDEST=/home/packages
#-- Source cache: specify a fixed directory where source files will be cached
#SRCDEST=/home/sources
#-- Source packages: specify a fixed directory where all src packages will be placed
#SRCPKGDEST=/home/srcpackages
#-- Packager: name/email of the person or organization building packages
#PACKAGER="John Doe <[email protected]>"
# EXTENSION DEFAULTS
# WARNING: Do NOT modify these variables unless you know what you are
# doing.
PKGEXT='.pkg.tar.xz'
SRCEXT='.src.tar.gz'
# vim: set ft=sh ts=2 sw=2 et:
Last edited by tarun.hellknight (2011-04-12 15:45:26)That's strange... it wasn't installed.. although I had never,ever faced a problem while compiling packages via AUR.. maybe, I should be careful when uninstalling orphans.. thanks for the help..
-
im can u please help me out this issue im trying to install iTunes in windows 7 some error showing " windows installer package problem DLL require to complete this installation" this message showing.
Try the following user tip:
" ... A DLL required for this installation to complete could not be run ..." error messages when installing iTunes for Windows -
How to resolve AVCHD package problem in mountain lion
how to resolve AVCHD package problem in mountain lion
Thanks, David. I know this workaround. And one more with creating right-click Service. That's why I've used "uncomfortable" instead of "impossible". In my opinion, Apple should leave ability to choose OS's behavior, and I hoped somebody knew where to find it .
-
Compiling packages or procedures
Hello,
I am compiling a package , procedures etc. The query comes back with invalids. I have show error. How do I retrieve more detail information about why the package/procedure/view are invalid?
DECLARE
v_status VARCHAR2(10);
v_cmd VARCHAR2(150);
Cursor rw_objects
IS
Select object_name,object_type,status,owner
From dba_objects
WHERE UPPER(object_type) IN ('VIEW','PROCEDURE','FUNCTION','PACKAGE', 'PACKAGE BODY','TRIGGER','SYNONYM')
AND owner = UPPER('&&DW_SCHEMA')
AND status = 'INVALID';
BEGIN
FOR t IN rw_objects
LOOP
IF t.object_type ; IN ('SYNONYM','VIEW','TRIGGER','PROCEDURE','FUNCTION') THEN
v_cmd := 'ALTER ' || t.object_type || ' ' || t.owner||'.'||t.object_name || ' COMPILE ';
execute immediate v_cmd;
ELSIF
t.object_type ; = ('PACKAGE') THEN
v_cmd := 'ALTER PACKAGE ' || ' ' || t.owner||'.'||t.object_name || ' COMPILE PACKAGE';
execute immediate v_cmd;
ELSIF
t.object_type ; = ('PACKAGE BODY') THEN
v_cmd := 'ALTER PACKAGE ' || ' ' || t.owner||'.'||t.object_name || ' COMPILE BODY';
execute immediate v_cmd;
dbms_output.put_line( rpad( t.object_type || ' ' || t.object_name, 50, ' ' ) || ' VALID ');
END IF;
END LOOP;
END;
SELECT object_name, object_type, status
FROM dba_objects
WHERE STATUS = 'INVALID'
AND UPPER(object_type) IN ('VIEW','PROCEDURE','FUNCTION','PACKAGE', 'PACKAGE BODY','TRIGGER','SYNONYM')
AND owner = UPPER('&&DW_SCHEMA')
ORDER by object_type;
show errors; Here are the results.
OBJECT_NAME OBJECT_TYPE STATUS
PM206 PACKAGE BODY INVALID
DW_BE_DFACT_TB_REFRESH_HANDLER PACKAGE BODY INVALID
DW_BE_DFACT_TB_INITIAL_HANDLER PACKAGE BODY INVALID
CHART_HANDLER PACKAGE BODY INVALID
DW_CRS_HANDLER PACKAGE BODY INVALID
DELETE_UPDATE_PROC PROCEDURE INVALID
DW_CBS_PROC PROCEDURE INVALID
DW_GL_DFACT_VW VIEW INVALID
8 rows selected.
No errors.too bad COPY & PASTE are broken for you!
1 DECLARE
2 v_status VARCHAR2(10);
3 v_cmd VARCHAR2(150);
4 Cursor rw_objects
5 IS
6 Select object_name,object_type,status,owner
7 From dba_objects
8 WHERE UPPER(object_type) IN ('VIEW','PROCEDURE','FUNCTION','PACKAGE', 'PACKAGE BODY','TRIGGER','SYNONYM')
9 AND owner = UPPER('&&DW_SCHEMA')
10 AND status = 'INVALID';
11 BEGIN
12 FOR t IN rw_objects
13 LOOP
14 IF t.object_type ; IN ('SYNONYM','VIEW','TRIGGER','PROCEDURE','FUNCTION') THEN
15 v_cmd := 'ALTER ' || t.object_type || ' ' || t.owner||'.'||t.object_name || ' COMPILE ';
16 execute immediate v_cmd;
17 ELSIF
18 t.object_type ; = ('PACKAGE') THEN
19 v_cmd := 'ALTER PACKAGE ' || ' ' || t.owner||'.'||t.object_name || ' COMPILE PACKAGE';
20 execute immediate v_cmd;
21 ELSIF
22 t.object_type ; = ('PACKAGE BODY') THEN
23 v_cmd := 'ALTER PACKAGE ' || ' ' || t.owner||'.'||t.object_name || ' COMPILE BODY';
24 execute immediate v_cmd;
25 dbms_output.put_line( rpad( t.object_type || ' ' || t.object_name, 50, ' ' ) || ' VALID ');
26 END IF;
27 END LOOP;
28* END;
29 /
old 9: AND owner = UPPER('&&DW_SCHEMA')
new 9: AND owner = UPPER(' USER1')
IF t.object_type ; IN ('SYNONYM','VIEW','TRIGGER','PROCEDURE','FUNCTION') THEN
ERROR at line 14:
ORA-06550: line 14, column 49:
PLS-00103: Encountered the symbol ";" when expecting one of the following:
. ( * @ % & = - + < / > at in is mod remainder not rem then
<an exponent (**)> <> or != or ~= >= <= <> and or like like2
like4 likec between || multiset member submultiset
The symbol ";" was ignored.
ORA-06550: line 18, column 48:
PLS-00103: Encountered the symbol ";" when expecting one of the following:
. ( * @ % & = - + < / > at in is mod remainder not rem then
<an exponent (**)> <> or != or ~= >= <= <> and or like like2
like4 likec between || multiset
ORA-06550: line 22, column 49:
PLS-00103: Encountered the symbol ";" when expecting one of the following:
. ( * @ % & = - + < / > at in is mod remainder not rem then
<an exponent (**)> <> or != or ~= >= <= <> and or like like2
like4 likec between || multiset
SQL> -
Error when Compiling package header and body - how change pkb file associat
Hi everyone,
it has already been noticed elsewhere (in the thread "Compiling package header and body" of Jan 12, 2010) that the compilation of package scripts sometimes fails (apparently because of a sqldeveloper bug) when the script contains the terminating slash /.
Is this bug still open?
Next question: In the above mentioned thread it is recommended as workaround to change the corresponding file type association from pl/sql to sql. I would like to do that; I know the place in the preferences dialog, but most of the associations there seem to be hard coded and cannot be changed.
I would appreciate any ideas!
Thanks in advance,
user8632123.For the workaround: you'd have to change the file's extension, not the association (to e.g. .sql).
Have fun,
K. -
How do i get error after compiling package
Hi ,
i am compiling some packages by sys schema of hr schema as
alter package hr.example compile package
but it shows compiled with error
how can i see that errors as i dont know the password of hr schema ..
Thanks in advanceFirst of all you should not be using SYS to compile anything ... create a DBA account.
Second there is not need to be HR to see the errors ... type "SHO ERR" and you should see the errors and if that does not work there is always the simple
SELECT * FROM dba_errors;In the future please do not post questions without full version number and, when possible, screen scrapes (cut and paste) so we can see what you are doing. -
[svn] 1091: compiler: class renaming in the compiler package
Revision: 1091
Author: [email protected]
Date: 2008-04-03 13:32:09 -0700 (Thu, 03 Apr 2008)
Log Message:
compiler: class renaming in the compiler package
* flex2.compiler:Context to CompilerContext
* flex2.compiler.util:Console to ConsoleLogger
Bugs: n/a
QA: No
Doc: No
Modified Paths:
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/API.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/CompilationUnit.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/CompilerSwcContext.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/PersistenceStore.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/Source.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/SymbolTable.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/abc/Compiler.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/Compiler.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/EmbedExtension.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/StyleExtension.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/SyntaxTreeEvaluator.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/binding/DataBindingExtension. java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/binding/DataBindingFirstPassE valuator.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/binding/TypeAnalyzer.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/genext/GenerativeSecondPassEv aluator.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/asdoc/ASDocExtension.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/css/Compiler.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/i18n/Compiler.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/ImplementationCompiler.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/InterfaceCompiler.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/builder/AbstractDocumentBuil der.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/rep/MxmlDocument.java
flex/sdk/trunk/modules/compiler/src/java/flex2/tools/oem/internal/OEMConsole.java
Added Paths:
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/CompilerContext.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/util/ConsoleLogger.java
Removed Paths:
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/Context.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/util/Console.javaOut of curiosity, do you have a directory called WEB-INF inside of
MyPortal\portalApp\portlets\WFWeb? If so, can you try removing/renaming it?
"Gavin" <[email protected]> wrote in message
news:40581f2e$[email protected]..
>
I create a Application naming "MyPortal" in WorkShop.
And create a Project naming "portalApp".
In folder "portalApp", I create a folder "portlets"
And create a PageFlow in folder "portlets", so I get a jpf naming"WFWebController.jpf"
>
>
W:\bea\user_projects\applications\MyPortal\portalApp\portlets\WFWeb\WFWebCon
troller.jpf
>
But I add some java code in the method of WFWebController.jpf
when I run the WFWebController.jpf from workshop
the compiler throws a ERROR message "A PageFlowController at the root ofthe web
application must be in the default package."
Have any solution about this ERROR ?
Thanks,
Gavin. -
Hi ,
begin
Execute immediate 'ALTER PACKAGE OU_TERRITORY_LOOKUP Compile PACKAGE ' ;
end;-24344 ORA-24344: success with compilation error
-24344 ORA-24344: success with compilation error
wht is ti mean ? how it can be success if it's errors ???
thanks in advance
Rajinfant_raj wrote:
-24344 ORA-24344: success with compilation error
wht is ti mean ? how it can be success if it's errors ???The compile command was accepted (it was successful in initiating a compilation of the requested object). However, the object itself failed to compile - that part was unsuccessful.
24344, 00000, "success with compilation error"
// *Cause: A sql/plsql compilation error occurred.
// *Action: Return OCI_SUCCESS_WITH_INFO along with the error code
//Example. The package has a function that refers to an object that the package does not have select access to. The package is created in the example and then compiled (again) using PL/SQL and dynamic SQL. The USER_ERRORS view is then used to determine what errors there are in the package.
SQL> create or replace package FooTest as
2 function version return varchar2;
3 end;
4 /
Package created.
SQL>
SQL> create or replace package body FooTest as
2 function version return varchar2 is
3 ver varchar2(20);
4 begin
5 select i.version into ver from v$instance i;
6 return( ver );
7 end;
8 end;
9 /
Warning: Package Body created with compilation errors.
SQL>
SQL>
SQL> begin
2 execute immediate 'alter package FooTest compile';
3 exception when OTHERS then
4 dbms_output.put_line( 'package FooTest failed to compile successfully' );
5 raise;
6 end;
7 /
package FooTest failed to compile successfully
ERROR:
ORA-24344: success with compilation error
ORA-06512: at line 5
Warning: PL/SQL compilation errors.
SQL>
SQL> select
2 e.name, e.type, e.line, e.text
3 from user_errors e
4 where e.name = 'FOOTEST' order by 1,2,3;
NAME TYPE LINE TEXT
FOOTEST PACKAGE BODY 5 PL/SQL: SQL Statement ignored
FOOTEST PACKAGE BODY 5 PL/SQL: ORA-00942: table or view does not exist
SQL>
Maybe you are looking for
-
Appbuilder- Error while creating a cordova project.
Hi all, I am getting an error "invalid no of parameter" while create a cordova project for a superList(name SAP_Superlist), but showing successfully created message aswell. Due to the error cordova project is not getting created in the workspace path
-
'S' message in BDC and message of type 'A' in batch input session
We have to upload data for ABZON transaction of assets. When we use LSMW with recording method and try to upload say 3 records. All teh records are updated successfully but the batch input session log says last two records with a message of type 'A'
-
I am programming a chat server and I want it to log any errors so i don't waste speed and stuff with swing because the idea is to have it running on a server with no screen so i need a log file so i know whats rong when it stops working. I would like
-
Can we call super class method from Overwrite method using SUPER keyword
Hi All, For one of our requirement , I need to overwrite "Process Event" method of a feeder class ,where process event is present is protected method. so when we are making a call , then its saying "Method "process event" is unknown or Protected
-
Microsoft Operations Manager Condolidator Module processing thread failed
Hello, I got the error: The Microsoft Operations Manager Condolidator Module processing thread failed with an internal error and must be unload. with event ID 11105 & 11108 but not the one in the article is it the same issue or more ... I could not f