Package body does not compile in Object Browser
Hi there,
I am trying to compile a package body using the Apex Object Browser. However, when I click the "Compile" button no message is displayed in the box above the package body code. I reduced the amount of code by removing comments and extra carriage returns and it then compiled ie the message "PL/SQL code successfully compiled (18:35:55) " was displayed. After trial and error I found that by adding just one character to the end of a comment line would cause this problem and by removing it the problem would dis-appear.
I raised this issue back on 19th June, and sspadafo responded by suggesting that I upgrade from Apex 2.1 to Apex 3.2. (Thanks by the way). This I have now done but the problem is still occurring. Is there some parameter that I have to increase in order to compile packages greater than a couple of kilobytes in size?
Database is 10.2 XE running on Windows Vista Home Premium.
Thanks.
John.
What would you say is a large package that sometimes causes the compilation to fail? For example, in excess of 10000 lines of code.
I've just tried a package with the minimal amount of code, with as many comments as required to demonstrate the problem as follows:
Note: The last comment is on line number 108!
create or replace package body "TEST_PACKAGE" is
--Comments comments comments comments comments
--Comments comments comments comments comments
--Comments comments comments comments comments
--Comments comments comments comments comments
--Comments comm...
... comments comments comments
--Comments comments comments comments comments
--Comments comments comments comments commen
procedure TEST_PROC
as
begin
null; /* insert procedure code */
end TEST_PROC;
end "TEST_PACKAGE";
{end code}
You will notice that the last comment line is truncated. The above compiles everytime, but by adding one more character to the last comment line will cause it not to compile everytime. Downloading the above to disk gives a size of 5134 bytes, which is twice the size of the other package, which has a little more code, that I was trying to compile. When I say a "a little more code", I mean two procedures and one function of approximately 20 lines each!
Oh well! Looks like I'll have to give SQLDeveloper a try as I don't fancy going through the "edit file/action file" loop in SQL*Plus or the "submit script/wait for results/examine results" loop in SQL Scripts.
(For info, I am using Internet Explorer 7)
Thanks.
Similar Messages
-
Package body greater than 2160 bytes does not compile in Object Browser
Hi there,
I initially created a package in Apex 2.1.0.0.39 using the Object Browser and it compiled OK. The message in the box above the source code says "PL/SQL code successfully compiled (17:51:08)". I then added more code and eventually when I clicked the "Compile" button" the message to say successfull compilation or any error message was not displayed. The box above the source code remains blank. After much trial and error I found that by adding just one more letter to the end of a comment that it would not compile, but by removing the letter then it would compile most of the time. I downloaded the package and found that the size of the download .PLB file was 2160 bytes. Editing the PLB file using a text editor to increase the size and executing it in SQL*PLUS does work.
Is this a fundamental limit on the size of packages that can be compiled using the Object Browser, or is there an Apex configuration parameter that can be modified to allow larger packages? If this is a limit then why isn't an informational message displayed? Or is this in fact an installation issue or an issues with Apex Object Browser?
Further information:
Oracle Database 10g Express Edition Release 10.2.0.1.0 - Product
PL/SQL Release 10.2.0.1.0 - Production
CORE 10.2.0.1.0 Production
TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
NLSRTL Version 10.2.0.1.0 - Production
I installed this version back at the beginning of the year for training purposes and have not made any conifiguration changes that I am aware of, or installed any further upgrades/software since.
All help gratefully received by this "definitely a nubie".
Regards.
John.John,
If you are using, as you said, Application Express version 2.1.0.0.39, be aware that this is a very old (and not a supported) version. If you have trouble with the latest version (currently 3.2), feel free to report them here.
Scott -
WB_RT_PROFILE_SERVICE package body does not compile
Hi,
When recompiling the WB_RT_PROFILE_SERVICE package body I get following messages:
Compilation errors for PACKAGE BODY REP_OWNER.WB_RT_PROFILE_SERVICE
#13#10Error: PLS-00201: identifier 'WB_RT_DP_FK' must be declared
Line: 1062
#13#10Error: PL/SQL: Statement ignored
Line: 1062
#13#10Error: PL/SQL: ORA-00904: "CONSTRAINT_ID": invalid identifier
Line: 2004
#13#10Error: PL/SQL: SQL Statement ignored
Line: 2004
#13#10Error: PLS-00364: loop index variable 'C' use is invalid
Line: 2009
#13#10Error: PL/SQL: Statement ignored
Line: 2009
#13#10Error: PLS-00364: loop index variable 'C' use is invalid
Line: 2032
#13#10Error: PL/SQL: Statement ignored
Line: 2032
#13#10Error: PLS-00364: loop index variable 'C' use is invalid
Line: 2033
#13#10Error: PL/SQL: Statement ignored
Line: 2033
#13#10Error: PLS-00364: loop index variable 'C' use is invalid
Line: 2034
#13#10Error: PL/SQL: Statement ignored
Line: 2034
#13#10Error: PLS-00364: loop index variable 'C' use is invalid
Line: 2035
#13#10Error: PL/SQL: Statement ignored
Line: 2035
#13#10Error: PLS-00364: loop index variable 'C' use is invalid
Line: 2036
#13#10Error: PL/SQL: Statement ignored
Line: 2036
#13#10Error: PLS-00364: loop index variable 'C' use is invalid
Line: 2037
#13#10Error: PL/SQL: Statement ignored
Line: 2037
#13#10Error: PLS-00364: loop index variable 'C' use is invalid
Line: 2038
#13#10Error: PL/SQL: Statement ignored
Line: 2038
As far as I am aware of, no one touched any code.
Does anyone know how to correct this?
Does this prevent deploying objects.
Thanks in advance,
Regards,
ReneFixed this way:
Altered the script:
• Based on Wb_rt_profile_se.sql, created a drop_wb_rt_profile_se_fixed.sql to drop everything created by wb_rt_profile_se.sql.
• Based on Wb_rt_profile.sql, create wb_rt_profile_fixed.sql to remove partitioning.
What happened seemed to be:
• Wb_rt_profile_se.sql was run during the installation.
• Then wb_rt_profile_service.sql referenced objects created by wb_rt_profile.sql, or there was no wb_rt_prifile_service_se.sql.
Run drop_wb_rt_profile_se_fixed.sql.
Then run Wb_rt_profile_fixed.sql
Recompile all objects.
OK. -
Apex 4 error ORA-04042 procedure, function, package body does not exist
Hi all,
I was instaling Oracle Application Expres 10g on Linux ubuntu and I was download and unzip apex 4
on /usr/lib/oracle/xe/
then connect as SYS as sysdba with pass and
start
@/usr/lib/oracle/xe/apex/apexins SYSAUX SYSAUX TEMP /i/
installation starting
... after 5 minutes theres end of log file>
I. O R A C L E S Y S I N S T A L L P R O C E S S
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/dev_grants.sql"
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/core_grants.sql"
...CONNECT as the Oracle user who will own the APEX engine
Session altered.
III. I N S T A L L A P E X P A C K A G E S P E C S
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_plsql_editor.sql"
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_model_api.sql"
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_f4000_util.sql"
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_plugin_f4000.sql"
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_image_generator.sql"
Installing Team Development objects
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/team_tab.sql"
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_team.sql"
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_team_api.sql"
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_team_gen_api.sql"
Installing Application Migration Workshop objects
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_mig_create_ddl.sql"
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_mig_frm_create_ddl.sql"
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_mig_exporter_ins.sql"
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/mig_views.sql"
...installing Application Migration Workshop package spec
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_mig_acc_load.sql"
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_mig_frm_load_xml.sql"
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_mig_frm_olb_load_xml.sql"
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_mig_frm_update_apx_app.sql"
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_mig_frm_utilities.sql"
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_mig_frmmenu_load_xml.sql"
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_mig_rpt_load_xml.sql"
...install Application Migration Workshop package body
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_mig_acc_load.plb"
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_mig_frm_load_xml.plb"
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_mig_frm_olb_load_xml.plb"
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_mig_frm_update_apx_app.plb"
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_mig_frm_utilities.plb"
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_mig_frmmenu_load_xml.plb"
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_mig_rpt_load_xml.plb"
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_item_comps.sql"
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_translation_utilities.sql"
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/copy.sql"
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/copy_lov.sql"
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/copy_item.sql"
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/copy_button.sql"
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_translation_utilities.sql"
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/seed.sql"
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/sync.sql"
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/layout.sql"
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_lov_used_on_pages.sql"
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_query_builder.sql"
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_sw_object_feed.sql"
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_load_data.sql"
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_load_excel_data.sql"
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/copy_metadata.sql"
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/copyu.sql"
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_tab_mgr.sql"
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/generate_ddl.sql"
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/table_drill.sql"
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_download.sql"
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_copy_page.sql"
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/generate_table_api.sql"
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_gen_hint.sql"
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_xliff.sql"
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_create_model_app.sql"
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/apex_admin.sql"
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_help.sql"
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_data_quick_flow.sql"
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_theme_files.sql"
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_session_mon.sql"
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_sw_page_calls.sql"
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_wiz_confirm.sql"
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_page_map.sql"
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_drag_layout.sql"
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_dataload_xml.sql"
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/apex_ui_default_update.sql"
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/apex_mig_projects_update.sql"
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_install_wizard.sql"
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_dictionary.sql"
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_advisor.sql"
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_search.sql"
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_f4000_plugins.sql"
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_4000_ui.sql"
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_4050_ui.sql"
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_workspace_reports.sql"
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_f4000_p4150.sql"
timing for: Development Package Specs
Elapsed: 00:00:00.02
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_plsql_editor.plb"
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_model_api.plb"
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_f4000_util.plb"
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_plugin_f4000.plb"
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_image_generator.plb"
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/layout.plb"
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_query_builder.plb"
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_sw_object_feed.plb"
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_load_data.plb"
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_load_excel_data.plb"
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/copy_metadata.plb"
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/copyu.plb"
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_tab_mgr.plb"
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/generate_ddl.plb"
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/table_drill.plb"
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_download.plb"
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_copy_page.plb"
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/generate_table_api.plb"
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_gen_hint.plb"
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_translation_utilities.plb"
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_xliff.plb"
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_create_model_app.plb"
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_help.plb"
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_data_quick_flow.plb"
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_theme_files.plb"
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_session_mon.plb"
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_sw_page_calls.plb"
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_wiz_confirm.plb"
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_page_map.plb"
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_drag_layout.plb"
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_dataload_xml.plb"
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/apex_ui_default_update.plb"
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/apex_mig_projects_update.plb"
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_install_wizard.plb"
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_dictionary.plb"
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_advisor.plb"
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_search.plb"
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_f4000_plugins.plb"
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_4000_ui.plb"
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_4050_ui.plb"
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_translation_utilities.plb"
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_team.plb"
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_team_api.plb"
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_team_gen_api.plb"
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_workspace_reports.plb"
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_f4000_p4150.plb"
...install demonstration Oracle APEX application package specs
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/collections_showcase.sql"
...install demonstration Oracle APEX application package bodies
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/collections_showcase.plb"
...install demonstration tables
SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_demo_tab.sql"
timing for: Development Package Bodies
Elapsed: 00:00:00.03
grant execute on wwv_mig_acc_load to public
ERROR at line 1:
ORA-04042: procedure, function, package, or package body does not exist
is there any solution?
regards
GordanInstall 4.0 pass ok!
1. I was changing apexins.sql
as PREFIX='@/usr/lib/oracle/xe/apex/'
and add path to coreins.sql as @/usr/lib/oracle/xe/apex/coreins.sql
2. create two folders coreinscore and coreinsbuild and copy all files from folder core and folder build
3. copy and rename endins.sql as coreinsendins.sql
after 10 min instalation pass ok!
Gordan
Edited by: useruseruser on Jun 29, 2010 2:12 PM -
ORA-04042: procedure, function, package, or package body does not exist
getting following error
I have logged on as sys
GRANT EXECUTE ON CTXSYS.CTX_DDL TO public
ERROR at line 1:
ORA-04042: procedure, function, package, or package body does not exist
does it need Oracle text installed
comp_name
Oracle Database Catalog Views
Oracle Database Packages and Types
Oracle Workspace Manager
JServer JAVA Virtual Machine
Oracle XDK
Oracle Database Java Packages
Oracle Expression Filter
Oracle XML Database
Oracle Rules Manager
Oracle Multimedia
Oracle Real Application Clusters912919 wrote:
getting following error
I have logged on as sys
GRANT EXECUTE ON CTXSYS.CTX_DDL TO public
ERROR at line 1:
ORA-04042: procedure, function, package, or package body does not exist
does it need Oracle text installed
comp_name
Oracle Database Catalog Views
Oracle Database Packages and Types
Oracle Workspace Manager
JServer JAVA Virtual Machine
Oracle XDK
Oracle Database Java Packages
Oracle Expression Filter
Oracle XML Database
Oracle Rules Manager
Oracle Multimedia
Oracle Real Application Clustersit worked for me.
09:10:19 SQL> GRANT EXECUTE ON CTXSYS.CTX_DDL TO public;
Grant succeeded.
09:10:23 SQL> -
Java Importer: import of java.lang.Boolean does not compile?
I have created a webservicestub for the Reports webservice with JDeveloper.
Now I want to use it in Forms. All methods work correctly, except the runJob method, which uses a boolean argument. I think I need to import java.lang.Boolean for it, but the created package body does not compile ("wrong number or type of arguments" in jni calls).
Does anybody have suggestions how to get it compiling, or how to call the runJob method without the import of java.lang.Boolean?Downloading 1.4 sdk does not have the javac, it just has the JRENo, you apparently downloaded the JRE runtime. Do this to get the compiler, etc:
Go here: http://java.sun.com/j2se/1.4/download.html
and in the section titled:
Download J2SETM v 1.4.0_01 JRE SDK
look in this row:
Windows (all languages, including English)
and click download in the column headed SDK at the far right -
Compilation error : package "coins" does not exist
Hi
I am new to Jva, though not new to programming.
I want to run a program I downloaded from internet But I cant since I got the following error
SimpleMain.java20 package coins does not exist.
import coins.HirRoot;
^(it points class HirRoot)
My GUESS is that I have to tell the compiler that I have my HirRoot class file somewhere. But I don't know how.
This is what I did:
I am at directory:
downloads/COINS/coinsBKP/examples/ And I want to compile SimpleMain.java inside of it
I have my classes (.class files) at directory:
downloads/COINS/coinsBKP/classes/coins/and Its source files (.java files) at directory:
donwloald/COINS/coinsBKP/src/coins/I input :
javac -d ../classes/coins/ SimpleMain.javaAnd I got many many errors.
What can I do?
btw I have tried also
javac -d ../classes/ SimpleMain.java
javac -d ./classes/ SimpleMain.javaand didn't work
Please help me, Any help will be greatly appreciated.Thanks for your answer.
But I still could not compile it ...
I did this...enriquez-guillermos-macbook:examples nacho$ javac -Xlint:unchecked -d ../classes/ -cp ../classes/ SimpleMain.java
SimpleMain.java:188: cannot find symbol
symbol : method setOptionalParam()
location: interface coins.sym.Subp
lPrintf.setOptionalParam();
^
SimpleMain.java:911: warning: [unchecked] unchecked call to add(E) as a member of the raw type java.util.List
lList.add(hir.intConstNode(0));
^
SimpleMain.java:914: warning: [unchecked] unchecked call to add(E) as a member of the raw type java.util.List
lList.add(lExpRepeat);
^
1 error
2 warnings
enriquez-guillermos-macbook:examples nacho$ As you suggested, I checked setOptionalParam() method. and it wasn't in Subp.java but it was found it in SubpImpl,java.
So How can I do this?
In C something like this might solutionate this problem...
#import "SubpImpl.java" but in java?
Also, I've noticed that SubpImpl is a Subclass of Subp so, importing or including a subclass "header" in the mother class file does not make sense Does it?
Is this a program problem or is the way I am compiling it? -
Import, package util does not exist
Hi all,
I installed Tomcat 5.0 for Java WSDP and after Java Web Services Developer Pack 2.0. Hence I created a directory "SAMLTestTool" into the folder
"tomcat50-jwsdp/webapps/ROOT/"
and I put inside some JSP files and some other directory (WEB-INF, META-INF...).
In some jsp file there is this line:
<%@page import="util.RequestUtil"%>and in the subdirectory "SAMLTestTool/WEB-INF/classes/util" there is the file "RequestUtil.class".
But when I try to open these file through the browser (for example "http://localhost:8080/SAMLTestTool/service_provider.jsp"), this is the error:
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: 59 in the jsp file: /SAMLTestTool/service_provider.jsp
Generated servlet error:
[javac] Compiling 1 source file
tomcat50-jwsdp/work/Catalina/localhost/_/org/apache/jsp/SAMLTestTool/service_005fprovider_jsp.java:6: package util does not exist
import util.RequestUtil;What does it mean? Where should I put the folder "util" in a such way that this package will be found?ROOT is a special folder configured to pertain to an empty context root.
If you put a folder there it is simply a folder but you are trying to use it as a context root.
So either keep what you have and put your util folder in:
tomcat50-jwsdp/webapps/ROOT/WEB-INF/classes
or
Move your SAMLTestTool to:
tomcat50-jwsdp/webapps/
Hope that helps. -
output error: The name of package 'greet' does not reflect the location of this file. Please change the package definition's name inside this file, or move the file. C:\Documents and Settings\Igal\My Documents\meiran\greet\Greeter.as
I keep on recieving this output error although my source path is set to C:\Documents and Settings\Igal\My Documents\meiran\greet.
any suggestions why this happens?The classpaths you define in your Flash software tell the compiler where to look when it needs to find a class. According to your as file, the very top line indicates the Greeter.as file should be at a location specified by the path...
one-of-your-classpaths\com\example\quickstart\
So if one of your classpaths is: C:\Documents and Settings\Igal\My Documents\meiran\greet\
and you placed the file in the greet folder, then in your AS document you should not have the "com\example\quickstart" and your import statement in the fla should not be using that (should just be... import Greeter;) -
Error: Package StockTablePanel does not exist
I am running j2sdk1.4.0 on RedHat Linux 7.1. I think I set everything up correctly. Compiling simple packages with no custom packages imported works and runs. But when I have a custom package imported like
import MyTable.*;
an error ... Package MyTable does not exist occurs.
The file MyTable.java compiled into several class files. The import package name matches the class definition in the MyTable.java file. The class files are in the current working directory which should be picked up by default, but since this did not work, I did try -classpath . with no success.
The funny thing is that -verbose indicates that these packages are found and loaded, but this darn error keeps a class file from being created.
Please, can someone shed some light on my problem. I am tired of surfing the web for an answer?
Thank You,Thankyou for your help. I think that I overly simplied my problem, because the use of -d did not seem to do the job. This is exactly what I have.
Directory: ~/JTraining/Ch7/StockTableTabPanel
Files: 1. PortfolioTotalsPanel.java
2. StockTablePanel.java
3. StockTableTabPanel.java
File 1 generates when compiled (javac -d classes <file1>)
classes/PortfolioTotalsPanel$1.class
classes/PortfolioTotalsPanel.class
File 2 generates when compiled (javac -d classes <file2>)
classes/StockTablePanel$1.class
classes/StockTablePanel.class
classes/StockTablePanel$StockTableModel.class
File 3 when compiled returns errors (javac -d classes -classpath classes <file3>)
StockTableTabPanel.java:14 package StockTablePanel does not exist
import StockTablePanel.*;
^
StockTableTabPanel.java:15 package PortfolioTotalsPanel does not exist
import PortfolioTotalsPanel.*;
^
2 errors
I tried absolute and relative pathnames with -d and -classpath. After the above errors while using the -verbose option, the [loading <jar and class> messages indicated that all the generated files of file1 and file2 except the two $1 files were loaded. So this error appears to indicated that two anonymous inner classes (created by event handle code) are the classes which cannot be found. But then again I might be way off and this is not the problem at all.
Thank you for any help that could be provided,
-
Error: package jxl does not exist
I've tried everything on this thread from 2007
how to import a jxl package?
and I still get the error: package jxl does not exist.
I've:
1)added the the excelapi subdirectory that contains the jar file to the system class path, then I tried explicitly adding the jxl.jar file to the classpath (below)
c:\Program Files\Java\jdk1.7.0_02\bin\; c:\Program Files\Java\jexcelapi\jxl.jar;
2)I tried adding a copy of the jxl.jar file to the java\jdk1.7.0_02\bin\ subdirectory also.
Anyone have any other troubleshooting ideas?
Thanks,
Rob
Edited by: 915729 on Feb 20, 2012 11:35 AMNeither of those is a very good idea.
You're also not telling how you're trying to compile the code.
If with javac, you should use the -cp switch to include the jxl library in the classpath. -
Error message: package Jfxcore does not exist
I have a file "Jfxcore.jar" in C:\Project. I added C:\Project\Jfxcore.jar to the classpath ( in xp control panel).
My app, test1, has the line: import Jfxcore.*;
It is also located in C:\Project
when I compile from the commad line with : javac test1.java or javac -cp . test1.java i get the error: package Jfxcore does not exist.
importing any of the stuff that comes with java works fine. It only fails when I try to import my own jar or class files.
I think I must have missed a step somewhere. Can anyone see what I am doing wrong? Thanks for the help.Inside the jar file it has about 20 classes but they are named with
"fxcore.classname" instead of Jfxcore.classname
I did not write the jar file and thought if the file name is Jfxcore.jar then that is what I should import.
when I use import fxcore.* it works.
I knew I was doing something stupid. Thanks for the help, you pointed me in the right direction. -
The ANE library is compiled to MacOS, but does not compile on Windows.
ANE lbrary FPHockeyApp http://flashpress.ru/blog/contents/ane/hockeyapp/FPHockeyApp-6.1.ane
Application:
package
import flash.display.Sprite;
import ru.flashpress.hockeyapp.FPHockeyApp;
import ru.flashpress.hockeyapp.ns.haIOS;
public class TestHockeyApp extends Sprite
public function TestHockeyApp()
super();
use namespace haIOS;
var APP_ID:String = 'you app id';
FPHockeyApp.manager.configureWithIdentifier(APP_ID);
FPHockeyApp.manager.startManager();
FPHockeyApp.manager.authenticator.authenticateInstallation();
Compiled in MacOS, but does not compile on Windows:
Why so?Windows 64-bit.
On a single MacBookPro installed OSX and Windows(not virtual). -
My source does not compile in 1.5 because of generics in libraries
Hi,
I have a problem with my source codes written for 1.3 and 1.4 java. I have been implementing Iterator, Collection, List and extending ArrayList in many ocassions. All works as expected in 1.4 but if I try to compile it with 1.5 it does not compile. I do receive many errors which generally speaking are showing that compiler does think that X subclass is not the same as a subclass of X<?> generic which simply makes all my code to not compile.
Does anybody had similar problems with their code? Does anybody knows how to rewrite problematic code so that it will compile under BOTH 1.4 and 1.5 without -source 1.4 option?
Some examples, stripped to problematic parts:
public class CSectionList extends ArrayList
public final boolean add(Object element)
int p = Collections.binarySearch(this,element);
/** Here comes error:
cannot find symbol
symbol : method binarySearch(sztejkat.utils.CSectionList,java.lang.Object)
location: class java.util.Collections
int p = Collections.binarySearch(this,element);
if (p<0)
public class CMemoryViewTable extends JTable
/** Here comes error:
name clash: setDefaultRenderer(java.lang.Class,javax.swing.table.TableCellRenderer) in sztejkat.hdl.debugger.ui.CMemoryViewTable and setDefaultRenderer(java.lang.Class<?>,javax.swing.table.TableCellRenderer) in javax.swing.JTable have the same erasure, yet neither overrides the other
public class CMemoryViewTable extends JTable
public void setDefaultRenderer(Class columnClass,
TableCellRenderer renderer)
if (renderer!=null)
super.setDefaultRenderer(columnClass,new CCursorRenderer(renderer));
}else
super.setDefaultRenderer(columnClass,null);
}In first example it seems to not catch that my CSectionList is a List<>, while in second it does not treat Class and Class<> equally what makes compiler to think that I don't override setDefaultRenderer method what I actually wanted to do (and did in 1.4).
Please help...
regards,
Tomasz Sztejka
P.S.
Where the source compatibility have gone between 1.4 and 1.5? If it will look like this I strongly vote to NOT touch java language specification - it was very nice, simple and clear language. With autoboxing and generics it starts to do a lot of things behind my back what I don't like - this is why I moved from C++ to Java - hate what C++ did with overloaded operators. But maybe I'm just to stupid.Hi,
I'm still not getting a good grip on generics, and still think they are not necessary.True, but when you have assembler you might not need C or Java. With assembler, you can write the most efficient programmes, but fixing a bug is not easy. With the higher level of C and Java, fewer trivial errors are made. The introduction of generics is another step towards compile-time bug prevention.
Will your request block me from having a set of different classes,
derived from different superclasses, all
implementing Comparable in the way, that they use
instanceof to check for proper relation (ie. I would
like to sorting to sort all classes A by some value
and all classes B to land in front of list)?Regarding raw classes, my request will change the erased interface of Comparable from
int compareTo(Object o);to
int compareTo(Comparable o);This would mean that all non-generic implementions of Comparable would have to be modified. I should have requested this enhancement ten years ago, but back then I did not know about Java at all :(
Where largest common superclass is Object (ie Asuper
is not instanceof Bsuper and vice-versa).
Will soring list of such objects (both A and B) will
be legal after your RFE ?Both A and B implement Comparable, so that should not be a problem. -
Hello I am on a macbook pro (retina IOS 9) i have installed xcodes and command line tools but codeblocks does not compile, terminal gives this message /Users/MacPc/Desktop/Untitled1: Permission denied any one has a solution?? please...
Back up all data before proceeding.
This procedure will unlock all your user files (not system files) and reset their ownership, permissions, and access controls to the default. If you've intentionally set special values for those attributes on any of your files, they will be reverted. In that case, either stop here, or be prepared to recreate the settings if necessary. Do so only after verifying that those settings didn't cause the problem. If none of this is meaningful to you, you don't need to worry about it, but you do need to follow the instructions below.
Step 1
If you have more than one user, and the one in question is not an administrator, then go to Step 2.
Triple-click anywhere in the following line on this page to select it:
sudo find ~ $TMPDIR.. -exec chflags -h nouchg,nouappnd,noschg,nosappnd {} + -exec chown -h $UID {} + -exec chmod +rw {} + -exec chmod -h -N {} + -type d -exec chmod -h +x {} + 2>&-
Copy the selected text to the Clipboard by pressing the key combination command-C.
Launch the built-in Terminal application in any of the following ways:
☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
Paste into the Terminal window by pressing command-V. I've tested these instructions only with the Safari web browser. If you use another browser, you may have to press the return key after pasting.
You'll be prompted for your login password, which won't be displayed when you type it. Type carefully and then press return. You may get a one-time warning to be careful. If you don’t have a login password, you’ll need to set one before you can run the command. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator.
The command may take several minutes to run, depending on how many files you have. Wait for a new line ending in a dollar sign ($) to appear, then quit Terminal.
Step 2 (optional)
Take this step only if you have trouble with Step 1, if you prefer not to take it, or if it doesn't solve the problem.
Start up in Recovery mode. When the OS X Utilities screen appears, select
Utilities ▹ Terminal
from the menu bar. A Terminal window will open. In that window, type this:
res
Press the tab key. The partial command you typed will automatically be completed to this:
resetpassword
Press return. A Reset Password window will open. You’re not going to reset a password.
Select your startup volume ("Macintosh HD," unless you gave it a different name) if not already selected.
Select your username from the menu labeled Select the user account if not already selected.
Under Reset Home Directory Permissions and ACLs, click the Reset button.
Select
▹ Restart
from the menu bar.
Maybe you are looking for
-
My Macbook Pro Retina doesn't turn on but charger led works
I haven't used my mac for a month but it use to work perfectly fine. I tried to use it but it wouldn't turn on. When i plug the magsafe connecter the led goes orange. But when i press the power button it doesn't turn on. i tried smc reset using left
-
TS2446 Why does my apple Id refuse to accept payment method
I am trying to download apps on an iPhone 3 my Mum gave me I have a iTunes account but it won't let me use it when I try I get a message to fill in all details when I do it says after filling in my debit card details that payment method not accepted
-
For multilingual same API's will be used or different while adding node
Hi Right now we have developed application using weblogic portal bea 10.2. now we want to insert metadata in bea repository. Is there any change that needs to be done at Repository level. same APIs will be used or different one. Regards Paramdeep
-
Playlist in shuffle plays only (the same) 5 songs, then stops
One of my playlists in iTunes in shuffle plays the same 5 songs (out of 83) and then stops. If I uncheck those 5, and start with another, it plays that song and stops. I've tried deleting the playlist and recreating it, both in Smart form and not, al
-
Hi all. I have been using the default OpenSSH client with the Mac OS X install since I made the switch from Windoze. I have been connecting to a linux server on my internal 192.168.1.x address space without a problem. However, I recently installed th