w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Successfully compiled Oracle package fails when called with 'ORA-04063: package body "..." has errors
Hard to tell what is the issue here, since it doesn't look like we are seeing the relevant code. So here are some thing I recommend to double check: package and package body are there and are actually compiled without an exception you are in the schema/user that contains package and package body. There are no other objects with the same name, that might hide your package/package body the procedure you try to call is present in package and package body. remove all code from package + package body except a single trivial procedure and check if that works. If you've done all that update the question with the results.

Categories : Oracle

Compile Two Class in Same Package
You cannot access private variables outside the class. Change them to public or protectd if you want them to be accessible in Class2 do as follows javac pack1/Class1.java javac pack1/Class2.java In short, If you are compiling packaged java files, then compile from the directory from where package structure starts. e.g. in your case javac pack1.Class1.java When trying to launch those, use fully qualified class names e.g. java pack1.Class2 You can read this good tutorial on how to compile and launch java programs in package structure

Categories : Java

Maven compile: package does not exist
You have to add the following dependency to your build: <dependency> <groupId>org.openrdf.sesame</groupId> <artifactId>sesame-rio-api</artifactId> <version>2.7.2</version> </dependency> Furthermore i would suggest to take a deep look into the documentation about how to use the lib.

Categories : Java

can not compile after package keyword added
package myjava; public class A{ void funcA(){ System.out.println("A"); } } --------------A.java-------------------- package myjava; public class B extends A{ void funcA(){ System.out.println("B"); } } ----------B.java------------ Now compile javac -d . A.java javac -d . B.java Hope this helps

Categories : Java

"sys-package-mgr*: can't create package cache dir" when run python script with Jython
1) By changing permissions to allow writing to the directory in the error message. 2) By setting python.cachedir.skip = true You can read this: http://www.jython.org/jythonbook/en/1.0/ModulesPackages.html#module-search-path-compilation-and-loading for further insights.

Categories : Python

When to compile apps that use a changed runtime package
Every time you change the interface section of a unit in a BPL you have to recompile the depended parts (EXE or other BPL).

Categories : Delphi

How to compile a Package using a psql command script
PostgreSQL does not support packages (I wish it did, to be honest). There are two things that are relatively close. The first is you can put your procedures in a schema for easy management. This is similar to packages except that the namespace is shorter. The second is that you can package procedures in a PostgreSQL extension. This is a fairly extensive topic, and the best thing you can do is to start reading the documentation. This is a complex topic, so please read the documentation slowly and carefully a time or two before starting.

Categories : Database

on my system, knitr can't compile a doc that uses the gdata package
It sounds like two instances of Perl clashed somehow in your PATH. Please post the output of the code below strsplit(Sys.getenv('PATH'), ';') Sys.which('perl') from both LyX/knitr and plain R. (Feel free to replace anything concerning privacy such as your user name with foobar)

Categories : Misc

Why does my code compile in VB.NET but the equivalent in C# fails
VB is rather looser with ByRef parameters than C# is. For example, it allows you to pass properties by reference. C# doesn't allow this. In a similar way, with Option Strict off, VB allows you to use an argument which is a subtype of the declared parameter. As a short but complete program, consider this: Imports System Public Class Test Public Shared Sub Main(args As String()) Dim p As String = "Original" Foo(p) Console.WriteLine(p) End Sub Public Shared Sub Foo(ByRef p As Object) p = "Changed" End Sub End Class That works in VB, but the equivalent in C# wouldn't... and for good reason. It's dangerous. In this case, we're using a string variable and we happen to change p to refer to another string, but if we change the body of Foo to:

Categories : C#

how to include user defined package when do maven compile
Java source should be in src/main/java, which is the root of your package hierarchy. I would strongly urge you to use the standard Maven directory layout. Why are there pom files in each of your packages?

Categories : Maven

Goals added to compile phase are not running in war package
You have declared the plugins under <pluginManagement> which means you are defining the plugins for any pom which inherits from this pom (making this pom the parent). You would need to have <plugins> defined directly under <build> if you want to use the plugins for this pom directly. <build> <pluginManagement/> <plugins> <plugin> ..... </plugin> <plugin> ..... </plugin> </plugins> </build>

Categories : Java

cross compile project as buildroot package with waf for ARM9
No expert on waf, but the "dodgy" *_FOR_BUILD vars should be due to the lack of echo "$(TARGET_CONFIGURE_OPTS)" in FOO_BUILD_CMDS. However, if this would be a autotools based configuration and install I wouldn't be overriding much in the build step, so try having just define FOO_BUILD_CMDS echo "$(TARGET_CONFIGURE_OPTS)" (cd "$(@D)"; ./waf --dest=$(TARGET_DIR) debug) endef Moreover, replace PKG_CONFIG_PATH="$(STAGING_DIR)/usr/lib/pkgconfig" with PKG_CONFIG_PATH="$(STAGING_DIR)/usr/lib/pkgconfig:$(STAGING_DIR)/lib/pkgconfig:‌​$(STAGING_DIR)/usr/local/lib/pkgconfig".

Categories : C

pyqtgraph compile to executable file fails
Every version of scipy seems to have a different set of bugs that make py2exe fail. For the latest version (0.12.0), I have found that I need these two lines somewhere in my program so that py2exe will include them in the build: from scipy.stats import futil from scipy.sparse.csgraph import _validation For some reason it does not seem to work to simply put these in the py2exe 'includes' option in the setup script.

Categories : Python

mysql2 gem fails to compile with MySQL 5.6.12 on OS X with Homebrew
I had the same problem, I managed to fix it. I did a lot of things, and I don't know for sure what it was, but going to MySQL 5.6.10 seems to have worked. Uninstall MySQL 5.6.12: brew unlink mysql brew uninstall mysql Go to the homebrew directory: cd /usr/local Go to version 5.6.10 (you can find a list of versions by running brew versions mysql: git checkout 48f7e86 Library/Formula/mysql.rb Then install mysql again: brew install mysql And now gem install mysql2 works for me. I've also installed mysql from source (brew install mysql --build-from-source), but that didn't solve it, but might be part of the solution.

Categories : Mysql

Code that calls ::memalign fails to compile in g++ 4.8
You need to #include <malloc.h> to use memalign. Or #include <cstdlib> and use posix_memalign instead. The :: in ::memalign tells the compiler to look for the function in the global namespace.

Categories : C++

Package restore fails on Azure
This seems to be an issue with NuGet v2.7: https://nuget.codeplex.com/workitem/3628 Perhaps use nuget v2.6 until a fix has been shipped?

Categories : Azure

vector::iterator inside if statement fails to compile
You can only define a variable inside an if's () if the entire contents of the () starts with the variable declaration (ie, if it is nothing but a variable declaration). What you are trying to do is both declare a variable, and then do a test on it. That isn't allowed. You can either fall back to the two line version, or you can write up a container-based find that uses boost::optional or std::tr2::optional as follows: namespace aux { using std::begin; using std::end; template<typename C> auto adl_begin( C&& c )->decltype( begin(std::forward<C>(c)) ) { return begin(std::forward<C>(c)); } template<typename C> auto adl_end( C&& c )->decltype( end(std::forward<C>(c)) ) { return end(std::forward<C>(c)); } } using aux::adl_

Categories : C++

Maven sonar findbugs fails with no source to compile
Findbugs requires that your source code has been compiled. If you follow Sonar documentation, here's what you should do: mvn clean install -DskipTests=true mvn sonar:sonar Then everything should work.

Categories : Maven

Build fails when trying to compile spring roo sample heroku app
org.apache.maven.BuildFailureException: There are test failures. From the exception It seems your test data is not correct. If you okay with skip the test please run the below command else you need to fix the test failures. mvn package -Dmaven.test.skip=true

Categories : Java

BOOST_CHECK fails to compile operator<< for custom types
There are three ways I have identified to solve the problem with operator<<. The first way is to provide an operator<< for your type. This is needed because when boost_check_equal fails, it also logs the failure by calling operator<< with the objects. See the verbose addendum after the break to see how this is actually accomplished. It's harder than it might seem. The second way is to not do the logging I just mentioned. You can do this by #definineing BOOST_TEST_DONT_PRINT_LOG_VALUE. To disable logging for just one test, you might surround the test in question with this #define, then immediately #undef it: #define BOOST_TEST_DONT_PRINT_LOG_VALUE BOOST_CHECK_EQUAL (first, second); #undef BOOST_TEST_DONT_PRINT_LOG_VALUE The third way is to sidestep the need for a

Categories : C++

Downloading jar from github repo fails while using maven compile
First off, please read this post Second, using a source control system as a Maven Repository is a really bad plan. The recommended thing to do is use a Maven Repository Manager. There are at least three implementations available and there is even an on-line hosting service. Thirdly, if you insist on following this misguided plan, you need to tell Maven the https path to the raw files in the GitHub repo, not the HTML rendering of the file content with line numbers etc

Categories : Maven

Googletest compile fails on defining a struct in #imported file
Use header guards to prevent the inclusion of headers more than once. http://en.wikipedia.org/wiki/Include_guard one suggestion add header files to a C files not C files to another C file.

Categories : C++

Maven finds artifact in local repo but fails to compile
My bet is that the systemPath dependency in the colorpicker POM is causing you trouble. You should in general not depend on projects that have systemPath dependencies. But if you do, could you make sure it's there?

Categories : Java

Maven aggregate build's install works but compile fails
You need to use mvn install. It is normal that mvn compile does not work. Module2 tries to load the needed classes from your local repository. If you do not do an install then the classes are not in your local repository and then Module2 cannot find the Module1 classes.

Categories : Maven

Installation of package ncdf fails due to missing header although it's there
You need to look at the configure.in script to see exactly what it tests for. Maybe it is expecting netcdf.h in a subdirectory rather than directly in /usr/include. I think I have built this in the past. I could take another look later.

Categories : R

C++ Vector Sort method fails to compile, returns expected expression
The code example that you showed has a C++11 language feature called lambda expressions. Most compiler do not run in C++11 mode by default. To explicitly let them do so, put inside your CMakeLists.txt set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") and regenerate, rebuild and rerun everything to get your program to work correctly.

Categories : C++

gcc with -isysroot creates include path that starts with equal sign "=" and compile fails
The answer is that the -isysroot option does not need/want an "=" in the path specification, so the correct command is: arm-none-linux-gnueabi-gcc -isysroot /home/willem/Projects/rootfs -nostdinc -I=/usr/include -O0 -g3 -Wall -c -fmessage-length=0 -v -o src/smd/button/button.o ../src/smd/button/button.c -H Cheers, W

Categories : C++

create nuget package fails with 'Path is not of a legal form'
Finally found the answer. This thread helped me locate the problem: http://social.msdn.microsoft.com/Forums/en-US/msbuild/thread/d3c6e2de-1e87-49c2-b059-df074868e315/ On my machine there was an environment variable 'platform' with value 'BWS'. Deleted it and things are working!

Categories : C#

knitr compilation fails with R error message and babel package
Not quite an answer (for that, see @EllisValentiner's), but an explanation: Here's a minimal reproducible tex document. Seems to be something to do with the ", so your guess about umlaut seems right on. documentclass{article} usepackage[dutch]{babel} egin{document} "} end{document} @baptiste noticed that babel is making it an active character, what it seems to be doing is "swallowing" the following character to see if it should put an umlaut on it; if so, it does, and if not, it prints the character normally. However, if the next character is a }, it's getting added to the code that figures out what to do, which then complains about having an extra }. So this minimal example works, I think because it's processing both { and the } in the babel code, and so the braces line up prope

Categories : R

In Package Manager Console, getting 'Set-Location' not recognized error, fails to load
I was able to resolve this error by installing PowerShell 3 via the Windows Management Framework 3 for Windows 7 SP 1 update (Windows6.1-KB2506143-x64.msu). It's unclear whether PowerShell 3 is required or the act of upgrading fixed whatever configuration issue caused this.

Categories : Powershell

Python compile all modules into a single python file
You can simply include .pyc files for the libraries required, but no - .pyc cannot work as a container for multiple files (unless you will collect all the source into one .py file and then compile it).

Categories : Python

how to compile and run a class in apackage that inherits protected member from another class in another package
You'll want to compile Child.java at the root (should be src in many cases) and use a path to compile, something like this assuming from your package name: javac other/Child.java

Categories : Java

How to convert/compile 64-bit python (2.7.4) as 32-bit python on linux?
You need proper so files for proper OS. Cant use just like that.. You need 64 bit libexpect5.44.1.9.so file from 64 bit machine. and load it before executing your code. You can also bundle up 64 bit libexpect5.44.1.9.so using sdx binary and keep loading it at the time of invocation.

Categories : Python

python ast module fails in pydev, succeeds in cmdline python
It seems the ast you have imported in PyDev is not the ast module in the standard library, but a package. I guess: There is a __init__.py file in the same directory as your test1.py. You selected "Add project directory to the PYTHONPATH" during the project creation. These two combined, results in that error. The ast module in the standard library is shadowed by this ast package. In cmdline python, this ast package is not in the search path, thus the ast module is imported. If you change test1.py to import ast if __name__ == '__main__': print ast.__file__ I guess the output in PyDev would be C: esearchastast\__init__.pyc

Categories : Python

python importing class from python package
Imports don't build on existing names like that. from ..model import session_initiator Also, session_initiator is now a module, not a class. If you meant to import something from inside that module then you must do so. from ..model.session_initiator import session_initiator

Categories : Python

Why won't this python regex compile?
Use a raw string literal: re.compile(r'NSLocalizedString(@"(?:\.|[^"\]*)",s*@"(?:\.|[^"\]*)"s*)', re.DOTALL) because backslashes have meaning in a regular Python string too. A raw string literal (a string literal prefixed with r) ignores (most) escape sequences that Python supports. See The Backslash Plague in the Python Regular Expression HOWTO.

Categories : Python

Python Regex Compile 2.7.5
The problem is in using multiple repeat characters: + and ?. Probably, non-greedy matching was meant instead: (.+?): The '*', '+', and '?' qualifiers are all greedy; they match as much text as possible. Sometimes this behavior isn’t desired; if the RE <.*> is matched against '<H1>title</H1>', it will match the entire string, and not just '<H1>'. Adding '?' after the qualifier makes it perform the match in non-greedy or minimal fashion; as few characters as possible will be matched. Using .*? in the previous expression will match only '<H1>'..

Categories : Python

Compile exe with misc directories into python
Try py2exe. Theres some more discussion here and here

Categories : Python

Is there a reason for python regex not to compile r'(s*)+'?
The problem that python has with this is primarily the null issue brought up in the linked post. If you're going to have at least one character I suggest instead using: (s+)+ That said, it also doesn't really make sense if you ask for (s*)+ with the idea that + requires something to exist, and * does not. It doesn't quite make sense to match ? either, but you can resolve it mentally by saying it's an optional match meaning that if it doesn't find one it moves on, rather than * which interprets nothing as a matched pattern. However, if you really want to check what Python's issue with something is I suggest playing around with ranges. For instance, I came to my conclusion by using these two examples: re.compile("(s{1,})+") which is fine re.compile("(s{0,})+") which fails in the sa

Categories : Python

Create a Python binary using compile all
To remove the dependency on pkg_resources, i did the following... pkg_resources was needed to access the files within the .egg. import pkg_resources accessfiles = pkg_resources.resource_listdir(...) Hence accessed the contents of the .egg using zipfile module... path = os.path.dirname(os.path.realpath(__file__)) import zipfile z = zipfile.ZipFile(file(path.rsplit("/", 3)[0])) accessfiles = filter(lambda zipList: zipList.startswith("<pattern>"), z.namelist()) This way dependency on pkg_resources was removed.

Categories : Python



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.